Meghan Markle tied the knot overnight, but it wasn't Prince Harry stood next to her at the altar.
The actress bid farewell to her colleagues on the US legal drama Suits – and brought the curtains down on her acting career – in a season finale that saw her character Rachel Zane marry fellow lawyer Mike Ross.
Ms Markle and Prince Harry are due to tie the knot – this time for real – at St George's Chapel in Windsor Castle on 19 May.
In the Suits episode, titled Good-Bye, the two characters leave their high-powered jobs in New York to move to Seattle, where they will run a firm dealing with class action lawsuits against Fortune 500 companies.
During the modest wedding, the 36-year-old's character told her co-star: "You're the husband I've always wanted."
Suits creator Aaron Korsh told Deadline: "I would say it was emotional.
"I remember having a really fun talk with Meghan as we were setting up to shoot the wedding and we were just wrapping up our time together.
"It was in November, during her first joint interview with Harry, that Ms Markle confirmed she would close her acting career."
At the time, Ms Markle had told reporters: "I don't see it as giving anything up, I just see it as a change. It's a new chapter."
Ms Markle's Suits co-stars had been among the first to congratulate her following the announcement of her engagement to Harry.
Adams had tweeted a link to the news from Kensington Palace, adding: "She said she was just going out to get some milk…"
He added: "Playing Meghan's television partner for the better part of a decade uniquely qualifies me to say this: Your Royal Highness, you are a lucky man and I know your long life together will be joyful, productive and hilarious. Meghan, so happy for you, friend. Much love."
More from Meghan Markle
Gabriel Macht, who played Ms Markle's boss Harvey Specter in the series, had tweeted: "Congrats to @meghanmarkle and Prince Harry.
"Sending all my best for your upcoming nuptials and a long happy life together. #love"