David and Katharine are engaged!

DAVID Foster and Katharine McPhee in Anacapri, Italy.

Composer David Foster and singer-actress Katharine McPhee are taking their relationship to the next level with an announcement of their engagement last week.

Foster, 68, popped the question to McPhee, 33, during their Europe vacation.

The American Idol alum revealed details of how her beau asked her the question on her Instagram account. In a screen capture of her text message with Just Jared founder Jared Eng, McPhee shared that Foster asked her the question at the top of a mountain in Anacapri, Italy.

“Totally dark. Thankfully he didn’t push off the cliff,” wrote the Smash star in a series of message.

McPhee and Foster have been dating for a year. They first met when Foster served as one of the guest judges in one of the episodes of American Idol season 5 where McPhee was a contestant.