Sudan's ruling military council and opposition leaders have signed a power-sharing accord after all-night talks.
It is a "historic moment" for the country, the deputy head of Sudan's ruling military council, Mohamed Hamdan "Hemeti" Dagolo, is quoted as saying by AFP news agency.
Sudan has been in turmoil since the military ousted President Omar al-Bashir in April.
Protesters have been demanding the military hand power to civilians.
Those protests turned deadly in a crackdown on 3 June, when at least 128 people were reportedly killed, a figure disputed by the military authorities.