Spain's former king Juan Carlos will leave the country, the royal palace has announced, weeks after he was linked to an inquiry into alleged corruption.
Juan Carlos, 82, made the announcement in a letter to his son, Felipe, to whom he handed power six years ago.
He said he would be available if prosecutors needed to interview him.
In June, Spain's Supreme Court opened an investigation into the alleged involvement of Juan Carlos in a high-speed rail contract in Saudi Arabia.
It was not immediately clear when the former monarch would leave Spain and where he would reside.
Juan Carlos abdicated in 2014 after nearly 40 years as king following a corruption investigation involving his daughter's husband and a controversial elephant hunting trip the monarch took during Spain's financial crisis.
What did the letter say?
In the letter, the former monarch wrote that he was making the decision "in the face of the public repercussions that certain past events in my private life are generating" and in the hope of allowing his son to carry out his functions as king with "tranquillity".

"Guided by the conviction to best serve the people of Spain, its institutions, and you as king, I inform you of my decision at this time to leave Spain.
"A decision I make with deep emotion but with great serenity," the letter said.
The statement from the Zarzuela palace said that King Felipe VI had conveyed "his heartfelt respect and gratitude" to his father for this decision.
In March, King Felipe VI renounced the inheritance of his father. The royal palace also said at the time that Juan Carlos would stop receiving an annual grant of €194,000 ($228,000; £174,520).
What is the corruption investigation about?
Spain's Supreme Court has said it aims to establish Juan Carlos's connection with the Saudi project after his abdication in June 2014. At that point he lost his immunity from prosecution.
Spanish firms won a €6.7bn (£6bn) deal to build a Mecca-Medina rail link.
The probe involves Swiss banks too.
Spanish anti-corruption officials suspect that the former king kept some undeclared funds in Switzerland, and a Swiss investigation is under way.
The Spanish government has said that "justice is equal for all" and it would "not interfere" in the inquiry.
Latest Stories
-
I was raised to serve – NAPO shares deep-rooted calling to public duty
31 minutes -
Germany’s Merz tells BBC Europe was free-riding on US
1 hour -
Trump loyalist Katie Miller crosses battle lines to continue work for Elon Musk
1 hour -
World’s oldest climate fund targets wildlife bonds for every country in Africa
2 hours -
France ends permanent troop presence in Senegal
2 hours -
IT Engineer returns from abroad and surrenders to authorities after OSP wanted notice
2 hours -
Ex-NPA CEO Mustapha Hamid denies GH¢280m extortion allegations filed by OSP
2 hours -
Trump reclassifies some federal workers, making them easier to fire
5 hours -
Judge rules Trump’s firing of FTC commissioner was illegal
5 hours -
Pope expresses sadness after Israeli strike on Gaza church kills three
5 hours -
Chantelle Boye-Hlorkah: Born in Liverpool, loved in Ghana
6 hours -
Barcelona agree sponsorship deal with DR Congo to promote tourism
6 hours -
Photos from ABSA-UPSA Quarterly Banking Roundtable
6 hours -
White House says Trump diagnosed with vein condition after questions about bruises
6 hours -
Mahama nominates two new MMDCEs for Ashanti Region
6 hours