An agreement has been reached between Queen Sophia of Spain and dating website Ashley Madison after the company used her image in advertisements without her permission.
Ashley Madison encourages extra-marital affairs, and featured Queen Sophia after many speculated that her husband was cheating on her.
The image appeared in a October 2012 pamphlet. It featured an edited image of her with her arms draped around a semi-naked man.
Alongside the image was the phrase, "Now you no longer have to spend the night alone." It was distributed in Spain.
The Queen's lawyer reached an agreement with Avid Dating Life Europe Ireland Ltd., the owners of the company. They will release a public apology to be printed in Spain's major newspapers and they promised to never use her image again.
They said they "deeply regretted" using the image and admitted it was "in a totally inappropriate context due to her personal career and her institutional significance."
She did not ask for any financial compensation in the case.
It first appeared in February 2012, and reappeared in October when the company distributed the pamphlets across Madrid.
It was believed to reference the allegations that her husband, King Juan Carlos, had several extra-marital affairs.
In 2010, they used a picture of Juan Carlos with two scantily-clad models with the phrase, "The best place to 'hunt' for an adventure."
That incidence was not taken to court.
The company was launched in America in 2001 and has since grown to have portals in 25 countries. Its slogan is "Life is short, Have an affair."