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
-
Police reviews operational capacity to combat Cybercrime and emerging security threats
36 minutes -
A/R: Police arrest prepaid meter thief in Abuakwa Agogo
47 minutes -
Richard Nii Amarh Quaye Foundation to roll out Food Bank Project to support Ghanaians in some underserved communities
2 hours -
Kintampo South MP urges fast-tracking of Startup Bill to tackle irregular migration
2 hours -
Team Ghana set for 2025 World Aquatics Championships in Singapore
2 hours -
Pleasure being a Hammer – Kudus bids farewell to West Ham
3 hours -
Pleasure being a Hammer – Kudus farewell to West Ham
3 hours -
Ghana’s Youth Minister joins Mark Cuban at Global Citizen summit in Detroit
3 hours -
Shun electoral violence to safeguard human rights and democracy – Kumawu MP appeals
3 hours -
Shell submits offer to join Ghana’s Pecan Oil Field project – Mahama
4 hours -
Forestry guard’s body discovered in bush after manhunt
5 hours -
Fight against illegal mining: Seven arrested at Abora
5 hours -
Ablekuma North Rerun inflames Ghana’s pervasive electoral violence crisis
5 hours -
Soldier who rejected ‘galamsey’ bribe secures promotion and UN posting
6 hours -
Bailiff jailed four years for forging judge’s signature
6 hours