Meghan Markle's engagement to Prince Harry was confirmed on Monday and with that her time on legal drama ‘Suits’ officially came to an end.

But rather than the actor asking to leave the show once she’d sealed the deal with Harry - ‘Suits’ creator Aaron Korsh has now revealed that her character Rachel Zane was written out of the series over a year ago.

Meghan MarkleMeghan Markle was actually written out of 'Suits' over a year ago

Korsh told Radio 4’s Today programme: “I knew from a year ago that this relationship was burgeoning and I had a decision to make because I didn’t want to intrude and ask her, ‘hey what’s going on and what are you going to do?’

“What we decided to do was to say, ‘look, I would rather have good things happen to Meghan in her life’ – which would likely mean her leaving the show.

“So let’s plan on that and it’s much easier to undo that, if it came to it, than to just plan on her staying forever and then finding out she’s going to go,” he added.

More: Prince Harry And Meghan Markle Dish On 'Romantic' Proposal And 'Blind Date'

After Meghan’s engagement was officially announced USA Network issued a statement confirming her exit from the show.

"From all of us at USA Network and Universal Cable Productions, we want to send our most heartfelt congratulations to Meghan Markle and Prince Harry on their engagement,” the statement read.

“Meghan has been a member of our family for seven years and it has been a joy to work with her. We want to thank her for her undeniable passion and dedication to 'Suits', and we wish her the very best.”

And in her joint interview with Prince Harry Meghan acknowledged that her time as an actress was now over. “I don’t see [my engagement] as giving anything up, I just see it as a change,” she told BBC News.

“It’s a new chapter. Also, keep in mind, I’ve been working on my show [Suits] for seven years. We’re very, very fortunate to have that sort of longevity on a series.

"Once we hit the 100 episode marker, I thought, ‘You know, I have ticked this box’. I feel really proud of the work that I’ve done there, and now it’s time to work as a team [with Harry].”