<Tr> <Td> 20 September 1989 </Td> <Td> 10 May 1994 </Td> </Tr> <P> Under the Interim Constitution and the current Constitution the President is head of both state and government . The President is elected by the National Assembly and serves a term that expires at the next general election; a President may serve a maximum of two terms . In the event of a vacancy the Deputy President serves as Acting President . </P> <Table> <Tr> <Th> No </Th> <Th> President (Birth--Death) </Th> <Th> Portrait </Th> <Th_colspan="2"> Tenure </Th> <Th> Elected </Th> <Th_colspan="2"> Political affiliation (at time of appointment) </Th> </Tr> <Tr> <Th> Took office </Th> <Th> Left office </Th> </Tr> <Tr> <Th> </Th> <Th> Nelson Mandela (1918--2013) </Th> <Td> </Td> <Td> 10 May 1994 </Td> <Td> 16 June 1999 </Td> <Td> 1994 </Td> <Td> </Td> <Td> African National Congress </Td> </Tr> <Tr> <Th> </Th> <Th> Thabo Mbeki (1942--) </Th> <Td> </Td> <Td> 16 June 1999 </Td> <Td> 24 September 2008 (resigned) </Td> <Td> 1999 </Td> <Td> </Td> <Td> African National Congress </Td> </Tr> <Tr> <Td>--</Td> <Td> Ivy Matsepe - Casaburri (1937--2009) </Td> <Td> </Td> <Td> 24 September 2008 </Td> <Td> 25 September 2008 </Td> <Td>--</Td> <Td> </Td> <Td> African National Congress </Td> </Tr> <Tr> <Th> </Th> <Th> Kgalema Motlanthe (1949--) </Th> <Td> </Td> <Td> 25 September 2008 </Td> <Td> 9 May 2009 </Td> <Td> 2008 </Td> <Td> </Td> <Td> African National Congress </Td> </Tr> <Tr> <Th> </Th> <Th> Jacob Zuma (1942--) </Th> <Td> </Td> <Td> 9 May 2009 </Td> <Td> 14 February 2018 (resigned) </Td> <Td> 2009 2014 </Td> <Td> </Td> <Td> African National Congress </Td> </Tr> <Tr> <Th> 5 </Th> <Th> Cyril Ramaphosa (1952--) </Th> <Td> </Td> <Td> 14 February 2018 </Td> <Td> 15 February 2018 </Td> <Td> 2018 </Td> <Td> </Td> <Td> African National Congress </Td> </Tr> <Tr> <Td> 15 February 2018 </Td> <Td> Incumbent </Td> </Tr> </Table> <Tr> <Th> No </Th> <Th> President (Birth--Death) </Th> <Th> Portrait </Th> <Th_colspan="2"> Tenure </Th> <Th> Elected </Th> <Th_colspan="2"> Political affiliation (at time of appointment) </Th> </Tr>

Who was the last president of south africa