Hilary Duff is engaged to be married.

The 31-year-old actress took to Instagram Thursday after saying "yes" to her boyfriend, DJ and singer Matthew Koma.

Duff shared a pair of photos of herself and Koma smiling after the singer's proposal. She showed off her engagement ring in the pictures.

"He asked me to be his wife," the star captioned the post.

Koma posted the same snapshots on his own account.

"I asked my best friend to marry me... @hilaryduff," he wrote.

Duff's sister, Haylie Duff, Lea Michele, Ashley Tisdale and Vanessa Lachey were among those to congratulate the couple in the comments.

"So happy for you babe!!!" Michele wrote.

Reality TV World is now available on the all-new Google News app and website. Click here to visit our Google News page, and then click FOLLOW to add us as a news source!
"I love everything about this!! So happy for you guys," Tisdale added.

Duff and Koma started dating in 2016.

The couple split in March 2017 but reconciled that October, and welcomed their first child together, daughter Banks Violet, in October 2018.

"This little bit has fully stolen our hearts! She joined our world at home on Thursday afternoon and is absolute magic," Duff wrote Oct. 29 on Instagram.

Duff was previously married to retired NHL player Mike Comrie. She is parent to 7-year-old Luca Cruz with the former Edmonton Oilers player.

Duff plays Kelsey Peters on the Paramount Network series "Younger."

She and the cast teased answers and drama to come in Season 6 in a first look video in April.

Photo credit: Hilary Duff / Instagram