Former king of Spain Juan Carlos to leave country amid corruption allegations .

Madrid: In June, the Spanish Supreme Court opened an investigation into the involvement of Juan Carlos in a high-speed rail contract in Saudi Arabia.

The former king of Spain Juan Carlos has told his son, King Felipe, that he has decided to leave the country, the Royal House said on Monday, after corruption allegations about him surfaced in recent weeks.

In June, the Spanish Supreme Court opened an investigation into the involvement of Juan Carlos in a high-speed rail contract in Saudi Arabia, after Swiss newspaper, La Tribune de Geneve newspaper reported he had received $100 million from the late Saudi King.

Through his lawyer, Juan Carlos, 82, has declined to comment on the allegations. “Guided by my desire to do what is best to serve the Spanish people, its institutions and you asking, I am informing you of my … decision to leave Spain at this time,” the palace statement quoted in the letter of Juan Carlos to the king as saying.

King Felipe thanked Juan Carlos for his decision, underlining “the historic importance that his father reign represents” for democracy in Spain. He also reaffirmed “the principles and values on which it (democracy) is based according to our Constitution and legal framework”.

Spanish monarchs have immunity during their reign but Juan Carlos abdicated in 2014, potentially leaving himself vulnerable to prosecution.

King Felipe put an end to the palace of his father and his allowance and renounced his own inheritance in March, following allegations of secret offshore accounts.

Juan Carlos came to the throne in 1975 after the death of General Francisco Franco and was widely respected for his role in helping guide Spain from dictatorship to democracy. But his popularity sank in later years due to a series of scandals, prompting him to step down.