Businesses are shut in South Sudan's capital, Juba, as people celebrate the signing of a power-sharing deal aimed at ending a brutal five-year civil war.
The deal will see rebel leader Riek Machar return to government as one of five vice-presidents.
He and President Salva Kiir signed the agreement in neighbouring Sudan.
Tens of thousands of people have been killed and millions displaced in the conflict which broke out about two years after South Sudan's independence.
South Sudan seceded from Sudan in 2011 but plunged into conflict in December 2013 following a power struggle between Mr Kiir and Mr Machar.
Previous attempts to find a solution to the conflict have failed.
"An agreement on outstanding issues has been signed and this agreement expresses the commitment of all parties to a ceasefire," said Sudanese Foreign Minister Al-Dirdiri Mohamed, who helped to broker the deal.
South Sudan's ruling party has declared an unofficial holiday to celebrate the signing of the accord, reports the BBC's Nichola Mandil from Juba.
Its members are driving around neighbourhoods in Juba, using loudspeakers to spread the news, he adds.
Most businesses in the capital are shut, and people are being urged to attend a celebratory rally Mr Kiir is due to address, our reporter says.
Speaking after the signing of the accord in Sudan, Mr Kiir said the government and rebels should "rededicate ourselves to unite our people and work for a peaceful transfer of power through the ballot boxes rather than through bullets".
Mr Machar urged mediators to focus on the implementation of the deal because the "devil lies always in the implementation".
South Sudan is rich in oil, but its economy has been devastated by the conflict.
Have your say
More World Headlines
- Trump attacks Mueller's Russia inquiry as 'absolutely nuts'
- Carmakers lure ride-hailer, delivery drivers in Africa
- White House aide Mira Ricardel removed after Melania Trump row
- Nigeria: Biafra secessionist leader 'must appear in court'
- Lion Air crash: Victim's fiancée takes wedding photos alone
- UK closer to delivering Brexit - May
- UN lifts nine-year Eritrea sanctions
- South Africa minister resigns weeks after sex video scandal
- Brexit: Theresa May to face cabinet showdown over deal
- Trump finally appoints new ambassador to Saudi Arabia
- Over 300,000 Congolese refugees forced to leave Angola
- 10 students die in suspected arson at Ugandan boarding school
- CNN sues Trump, top White House aides for barring Acosta
- California wildfires: Death toll reaches grim milestone
- Final school hostages freed in Cameroon