Spain's government has approved legislation to bring into force King Juan Carlos's abdication, a day after the 76-year-old announced he would hand the crown to his son Prince Felipe.
The law was approved during an extraordinary cabinet meeting and it will now be put to an urgent vote in parliament, where parties in favour of Spain's monarchy have a wide majority.
The abdication will take effect the day the new law is published in the Official State Bulletin, at an unspecified date after being passed by parliament.
The new monarch can then be proclaimed immediately.
The draft law approved by Prime Minister Mariano Rajoy's cabinet included an "institutional declaration" which praised the king's role in Spain's transition to democracy following the death of longtime dictator General Francisco Franco in 1975.
"Without his drive and leadership the transition simply would not have been possible," it said.
"If Spain today is a state of law, modern and democratic, which has achieved high levels of social wellbeing and leadership in Europe and in the entire international sphere, it is due, in large measure, to Juan Carlos I's reign," the text added.
After the king's announcement on Monday, thousands of anti-royalists took to the streets across Spain calling for a vote on the monarchy's survival.
The king was widely popular during most of his nearly 40-year reign, but has been dogged by scandal and health woes in the last few years.