Cyril Ramaphosa vowed to address the issue of corruption as he was voted in by parliamentarians as South Africa’s new president, following the scandal-tainted reign of his predecessor Jacob Zuma.

The crisis provoked by allegations surrounding Mr Zuma took the African National Congress to its weakest point since taking power at the end of apartheid.

“I will try very hard not to disappoint the people of South Africa,” Mr Ramaphosa said in ending his speech to parliament shortly after it elected him. He said the issue of corruption is on “our radar screen”.

Mr Ramaphosa was the only candidate nominated for election after two opposition parties said they would not participate. The two parties instead unsuccessfully called for the dissolution of the National Assembly and early elections.

Chief Justice Mogoeng Mogoeng presided over the parliamentary election and congratulated Mr Ramaphosa, who had been Mr Zuma’s deputy and in December was narrowly elected leader of the ruling party over Mr Zuma’s ex-wife.

Mr Zuma resigned after years of scandals that damaged the reputation of the ruling ANC, which had instructed him this week to step down or face a parliamentary motion of no confidence that he would almost certainly lose. Mr Zuma denies any wrongdoing.

Mr Ramaphosa is South Africa’s fifth president since the end of the apartheid system of white minority rule in 1994. On Friday evening, he is expected to deliver the state of the nation address that had been postponed during the ruling party’s days of closed-door negotiations to persuade Mr Zuma to resign.

As some South Africans cheered the end to Mr Zuma’s era, the rand currency strengthened against the dollar in early trading Thursday.

The country’s main opposition party, the Democratic Alliance, will cooperate with Mr Ramaphosa if he acts in the interests of the South African people, said party leader Mmusi Maimane.

“We will hold you accountable and I will see you in 2019 on the ballot box,” Mr Maimane said.

Members of a smaller opposition party walked out of parliament before the election, saying the ANC plan to choose a new president was “illegitimate”.

Julius Malema, leader of the Economic Freedom Fighters party, said ANC politicians had failed to hold former Mr Zuma to account for alleged corruption and had therefore violated the constitution.

Mr Ramaphosa now is challenged with reviving the reputation of the ANC, Africa’s most prominent liberation movement, which fought apartheid and has been in power since the first all-race elections in 1994. The party’s popularity fell as anger over corruption allegations grew and it suffered its worst showing at the polls in municipal elections in 2016.