Voters in Colombia have rejected a landmark peace deal with FARC rebels in a shock referendum result, with 50.24 per cent voting against it.
The deal was signed last week by president Juan Manuel Santos and FARC leader Timoleon Jimenez after nearly four years of negotiations.
But it needed to be ratified by Colombians in order to come into force.
Addressing the nation, president Santos said he accepted the result but would continue working to achieve peace.
He said the current ceasefire remained in place and that he had ordered negotiators to travel to Cuba to consult FARC leaders on the next move.
‘I won't give up,’ he said. ‘I'll continue the search for peace until the last moment of my mandate because that's the way to leave a better country to our children.’
Meanwhile, the FARC leader, known as Timochenko, said the group remained committed to securing an end to the war.
The rebels earlier agreed to lay down their weapons after 52 years of conflict to join the political process.
But critics said the deal treated the FARC, which the US still considers a terrorist group, too leniently.
The agreement was rejected with 50.2 per cent of voters against it and 49.8 per cent in favour - a difference of less than 63,000 votes out of 13 million ballots.
The surprise result means the peace process is now shrouded by uncertainty.
Former vice-president Francisco Santos, who opposed the deal, said he hoped a better agreement would follow.
‘The ‘no’ victory is a victory for peace with justice, it is a victory for a peace with pardon and reconciliation. The triumph of the ‘no’ is the triumph of a more inclusive peace, peace which includes us all, a more stable peace,’ he said.
President Santos had previously warned that there was no plan B for ending the war, which has killed 260,000 people.
The result is a major setback to the president, who since his election in 2010 had pledged to end a conflict blamed for displacing about eight million people.
Less than a week ago, he was celebrating with world leaders and FARC commanders the end of Latin America's last and longest-running armed conflict at a ceremony in the historic city of Cartagena.
The rebels were making plans to lay down their weapons and become a political party within six months.
But the president is now facing one of the most difficult moments in Colombia's recent history, says the BBC's Americas editor Leonardo Rocha.
If he sticks to his word about there being no plan B, the bilateral ceasefire will be lifted and the war will resume, our correspondent says.
The 297-page peace deal is a deeply divisive issue in Colombia, and the government has been accused of taking victory for granted.
Many of those opposed to the deal were angry that it would have spared the rebels time in prison when they were responsible for so many deaths and displacements.
The government tried to offset these concerns throughout the referendum campaign by spending heavily on television adverts in addition to staging concerts and peace rallies throughout the country in a bid to get people out to vote.
It called on the support of U2's Bono and former Beatle Ringo Starr - and for the first time in an election made ballots available in Braille so blind Colombians could vote.
Want stories like this in your inbox?
Sign up to exclusive daily email
More Stories from Latin America