Unseen text messages showing the breakdown of Meghan Markle’s relationship with her father have been published in court documents.

The messages were revealed by the Daily Mail ahead of Meghan and Prince Harry’s legal case against its sister paper, the Mail on Sunday.

They form part of the paper’s defense for publishing a letter from Meghan to her father Thomas Markle, who is reportedly due to appear in a court as a witness for the Mail on Sunday.

Meghan Markle and Prince Harry are taking the Mail on Sunday to court after it shared her private communications with her dad. (Photo: PA)

The texts show how they fell out in the run-up to her 2018 wedding, which Markle said he could not attend.

According to defense papers seen by Yahoo News U.K., Meghan admonished her father for saying he could not travel to the U.K.

On May 10, nine days before the wedding, Markle texted Meghan about clothes she had bought for him to wear to the wedding, legal documents filed this week say.

Thomas Markle with daughter Meghan. (Photo: Splash)

Texts quoted in legal documents and reported in the Daily Mail took place mostly in the run-up to Meghan and Harry's wedding in 2018. (Photo: DPPA/Sipa USA)

He wrote: “I look forward to trying on my shoes and see how we look thank you for getting it ready for me its [sic] probably past your bedtime so have a good night. I love you Dad.”

On May 16, Markle had an emergency operation to unblock two arteries to his heart.

The Daily Mail reported that he texted Meghan about the surgery, and said his doctors would not allow him to fly and therefore he could not attend the wedding.

According to court documents, also quoted in the Mail, “he received a text response signed ‘Love M and H,’ but which read as if it was from Prince Harry, (amongst other things) admonishing Mr. Markle for talking to the press and telling him to stop and accusing Mr. Markle of causing hurt to his daughter.

“The text did not ask how the surgical procedure had gone or how Mr. Markle was or send him good wishes.”

The newspaper quotes defense papers as showing that Markle replied by writing, “I’ve done nothing to hurt you, Meghan or anyone else, I know nothing about 20 phone calls. I'm sorry my heart attack is … any inconvenience for you.”

Meghan's relationship with her father was put under the microscope around the time of her wedding. (Photo: PA)

The court papers say Markle received no reply and Meghan did not speak to him again before the wedding, though the Mail said he continued to try and make contact.

Story continues

Meghan wrote the letter at the center of the upcoming court case to Markle in August 2018. In November 2018, court papers quoted by the Mail said Markle texted her to say: “I want to reach out to you or try to reach out to you one more time.

“You apparently have just written me off and now it's telling me I guess for the rest of my life?”

The newspaper reports legal documents saying he received no response, and has not heard from Meghan since then, nor been introduced to Prince Harry or grandson Archie.

Read more from Yahoo Lifestyle:

Want daily pop culture news delivered to your inbox? Sign up here for Yahoo Entertainment & Lifestyle’s newsletter.