Hungary's parliament voted in Andras Baka, formerly the head of the Supreme Court, as the country's next president on Tuesday.

The symbolic step is part of new Prime Minister Peter Magyar's sweeping efforts to dismantle the legacy of former premier Viktor Orban after winning April's general elections.

Baka was a staunch critic of Orban who was removed from his Supreme Court role during the former PM's tenure.

Now, he will replace Tamas Sulyok, a president appointed by Orban, whose term in office was shortened via constitutional amendment in order to remove him from the largely ceremonial role. What happened in Tuesday's parliamentary vote?

The vote in parliament to appoint Baka was always likely to be a formality, given the massive majority that Magyar's conservative, pro-European TISZA party holds in the chamber.