Burkina Faso’s President Blaise Compaore has announced his resignation, following violent protests at his attempt to extend his 27-year rule.
Mr Compaore issued a statement saying the presidency was now vacant and urging elections within 90 days.
Military chief Gen Honore Traore said he had taken over as head of state “in line with constitutional measures”.
Crowds danced and cheered in the capital, Ouagadougou, after Mr Compaore’s resignation was broadcast.
On Thursday, protesters angry at his attempt to amend the constitution had set fire to parliament and government buildings.
Mr Compaore had earlier vowed to remain in power until a transitional government completed its work in 2015, although he had agreed not to seek another term.
However, the opposition continued to demand that he resign – a key leader, Zephirin Diabre, urged protesters to occupy public spaces.
After the resignation, Mr Diabre told the BBC’s Focus on Africa radio programme: “We are all relieved by what is happening – and this is our demand for so long so we are very happy – and we need to work on the transition to take care of our country.”
Mr Compaore’s statement, read on television, said: “In order to preserve the democratic gains, as well as social peace, I declare a power vacuum to allow the establishment of a transition leading to free and fair elections within a maximum of 90 days.”
He added: “For my part, I think I have fulfilled my duty.”
His whereabouts now remain unclear.