Romanian President Traian Basescu resigned Monday, hours after the country’s highest court rejected a request to remove him from office.
He will remain in office through the end of the year.
His term expires in 2019.
The court’s ruling came a day after Basesu announced that he would not run again for a third term.
His resignation is a setback for the country, which has struggled to rebuild following the collapse of communism in 1989.
The country has been gripped by political instability since the end-March coup that toppled the government.
Basescu, a billionaire who took office in 2011, was embroiled in a corruption scandal that included the removal of a top government official and the purchase of a mansion in the capital, Bucharest.
The president has denied the allegations.
His resignation comes amid a wave of corruption scandals that have rocked the country in recent years, with thousands of employees, political leaders, judges and journalists being accused of embezzlement, bribery and other crimes.