Meghan Markle just got married on 'Suits' weeks before her real wedding to Prince Harry

Markle, 36, will wed Prince Harry on May 19 at Windsor Castle.

Markle, 36, tied the knot as her character, attorney Rachel Zane, on the two-hour season finale of "Suits," the TV drama Markle has starred on for the last seven seasons.

Markle's character and Mike Ross, played by Patrick J. Adams, who is also leaving the show, said their vows in front of friends and family in a last-minute wedding that took place after the couple decided to move to Seattle for new jobs.

"You are the strongest man I have ever met and you make me stronger," Markle's character said in her vows. "You are the husband I’ve always wanted and I can’t wait to begin our adventure together."

When Markle accepted Harry's proposal, she said she saw her new life as a royal as a "new chapter."

When asked in her first post-engagement interview with Harry about "giving up" her acting career, Markle replied, "Yes, but I don't see it as giving anything up, I just see it as a change. It’s a new chapter."

"Keep in mind, I've been working on my show for seven years," Markle said, referring to "Suits." "So we were very, very fortunate to be able to have the longevity on a series. And once we hit the 100-episode marker, [I felt] 'I have ticked this box.'

"And I feel really proud of the work I've done there," Markle continued. "It's time to work as a team with [Harry]."

Markle and Harry’s relationship developed as she was starring on “Suits” and living in Toronto, where the show is filmed.

Harry, 33, was spotted visiting his then-girlfriend in Toronto, including making a trip to the Canadian city in April 2016 to spend Easter with Markle.