What important political position did nelson Mandela hold after being released from jail?

When Nelson Mandela was released from prison, he became the first president of South Africa. He was the president for 5 years.