Thomas Thabane has announced he will step down as prime minister of Lesotho following months of pressure after he was named as a suspect in the murder of his ex-wife.
He did not say when he would leave office but his party said a new premier would be sworn in on Tuesday.
The 80-year-old’s current wife, with whom he was living at the time of the murder, was charged in connection with the killing in February.
The pair have denied any involvement.
- Get the latest updates from across Africa
- A murder mystery, the prime minister and his estranged wife
“I decided to personally come and inform you that I am stepping down as prime minister of Lesotho,” AFP news agency says he told supporters in his Abia home constituency on the outskirts of the capital Maseru.
Lesotho has been plagued by political instability this year – he lost his majority in parliament last week when the coalition backing him fell apart and a new government is expected to be installed on Friday.
What happened to Mr Thabane’s ex-wife?
Gunmen shot and killed Lipolelo Thabane on 14 June 2017 – two days before Mr Thabane was sworn in as prime minister.
While returning home, she was ambushed, shot several times at close range and died on the side of a dirt road. She was 58.
At the time, Lipolelo was going through a bitter divorce with Mr Thabane and had been living apart from her husband since 2012.
He had moved in with a new woman, Maesaiah Thabane, some time between 2012 and 2017.
Mr Thabane appeared in court in February for acting in “common purpose” but he hasn’t been formally charged yet.
Who is Thomas Thabane?
Mr Thabane, 80, is one of Africa’s oldest leaders and has spent most of his working life as a politician.
No stranger to political rivalry, Mr Thabane once fled to South Africa, alleging a coup plot by the military and had to be escorted back to Lesotho by the police.
Why hasn’t he been formally charged?
In the February court case his lawyer argued that his position as prime minister granted him immunity from prosecution.
The case was referred to the High Court. But the High Court has not heard the case yet.
It is not clear why the case has taken so long to come to court.
Mr Thabane insists that the accusations against him are politically motivated.
Why has it taken so long for him to resign?
It may be that he was trying to negotiate with his party to get an agreement that the investigation would be dropped in return for him resigning.
If that is the case, it hasn’t worked so far.
A spokesperson for the All Basotho Convention (ABC) told the BBC’s Pumza Fihlani that it will not be supporting any attempt by him to get immunity.
He has resisted immense pressure from his own party to resign earlier.
Around the time of his court appearance he announced that he would not step down until July.
He cited old age as the reason for his resignation, without mentioning the murder case.
In April, South African mediators negotiated a deal which promised a “dignified” exit.
But a few days later he was reported to have said that he will not be pushed out of office until he is ready to leave and that nobody had the right to set the time for his departure.