The leader of African National Congress, Jacob Zuma, has been officially elected South Africa's president by members of parliament.
He will be inaugurated on Saturday. A new cabinet will be announced on Sunday.
Mr Zuma, 67, received 277 votes compared to 47 for by Mvume Dandala of the opposition Congress of the People, which broke away from the ANC last year.
The ANC won a general election in South Africa two weeks ago. The ANC won 264 seats in parliament.
Mr Zuma faced corruption charges, which were dropped on a technicality just before the polls, although he always denied any wrongdoing.