Spain's new King Felipe VI has been proclaimed monarch at a formal ceremony in the country's Parliament, a deliberately low-key occasion for austere times and tarnished royal reputations.
Felipe swore an oath of allegiance to democratic principles in front MPs and senators, who shouted "Viva el Rey" - long live the king.
Although the 18th-century Spanish crown and 17th-century sceptre were displayed next to the new monarch, authorities shunned an opulent coronation ceremony.
The option for a relatively low-key proclamation was chosen out of sensitivity to the financial hardship endured by many Spaniards after a double-dip recession.
Even so, the cheering crowds and the pageantry provided a welcome distraction as the country is reeling from the national team's shock defeat by Chile in the World Cup in Brazil, which ended their hope of winning a second consecutive title.
Earlier, in his first official act since ascending to the throne after midnight, Felipe received the red sash of Captain General of the Armed Forces from his father Juan Carlos, who signed his abdication decree in favor of Felipe on Wednesday.
"We have a great country. We should all be proud of being Spaniards," he said at his swearing-in ceremony.
He acknowledged a need to restore the monarchy's image after recent scandals.
The monarchy was rocked when Juan Carlos went on a luxurious elephant-hunting safari in Botswana as Spaniards endured financial hardship.
His youngest daughter, Princess Cristina, was obliged to testify in a fraud and money-laundering case engulfing her husband, Olympic handball medalist turned businessman Inaki Urdangarin.
Felipe also sought to inspire a country where a quarter of the population is unemployed and many have emigrated in search of work.
He ended his speech by saying "thank you" in three Spanish regional languages - Catalan, Basque and Galician. Some in those regions want to secede or achieve greater independence from Spain.
After a brief military parade, King Felipe VI and his wife Queen Letizia drove through Madrid in an open-top vintage Rolls-Royce with the king standing, before appearing in front of crowds on a balcony at the royal palace.
The royal couple's daughters, princesses Leonor, 8, and Sofia, 7, accompanied them throughout.