King Juan Carlos of Spain, who is 76, has ruled since 1975, taking over after the death of dictator Francisco Franco.
The king’s son, Crown Prince Felipe, 45, will take over the throne.
For much of his reign, King Juan Carlos was seen as one of the world’s most popular monarchs, but recently many Spaniards have lost confidence in him.
His reputation has been tarnished by a long-running corruption investigation into his daughter and her husband.
Support for the king fell further when it was discovered he had been on a lavish elephant hunting trip to Botswana in the middle of Spain’s financial crisis.
Mariano Rajoy said the king was stepping down for personal reasons. His health is failing and he has had a number of hip operations in recent years.
The prime minister said King Juan Carlos had been a “tireless defender of our interests”.
“I’m convinced this is the best moment for change,” he added.
Mariano Rajoy said ministers would hold a special meeting on the issue.
wEaExSiBSeYThe US House Ethics Committee has voted to release its report on former Republican Representative…
ABC News has agreed to pay $15 million to President-elect Donald Trump to settle a…
South Korea’s parliament has voted to impeach President Yoon Suk Yeol over his failed attempt…
Israeli war planes have carried out more than 100 air strikes in Syria on December…
President-elect Donald Trump has threatened to impose 100% tariffs on the BRICS countries if they…
Syrian troops have withdrawn from the city of Aleppo following an offensive by rebels opposed…