South Africa's former President Jacob Zuma has handed himself in to police to begin serving a jail sentence for contempt of court.
He travelled to a prison near to his home in KwaZulu-Natal province late on Wednesday, his foundation said.
Police had warned they were prepared to arrest the 79-year-old if he did not hand himself in by the end of the day.
Mr Zuma was given a 15-month jail term last week after he failed to attend a corruption inquiry.
The sentencing sparked an unprecedented legal drama in South Africa, with a deadline imposed of midnight on Wednesday (22:00 GMT) for his arrest.
The deadline was imposed after Mr Zuma refused to hand himself in on Sunday.
"President Zuma has decided to comply with the incarceration order," his foundation said in a short statement.
His daughter, Dudu Zuma-Sambudla, later wrote on Twitter that her father was "en route [to the jail] and he is still in high spirits".
South Africa has never seen a former president jailed before.
Mr Zuma was handed the 15-month sentence on 29 June for defying an instruction to give evidence at an inquiry into corruption during his nine years in power.
Businessmen have been accused of conspiring with politicians to influence the decision-making process while he was in office. But Mr Zuma has repeatedly said that he is the victim of a political conspiracy.
Though he was forced out of office by his own party in 2018, the African National Congress (ANC), he retains a loyal body of supporters, especially in his home province of KwaZulu-Natal.