Even as the agreement was announced, it appeared fragile, with officials on all sides saying that there was more work to be done.
The cease-fire is scheduled to take effect on midnight Saturday, but the fact that the leaders used three separate news conferences to announce the accord suggested a lack of unity.
Still, after such a concentrated effort, all the leaders chose to accent the idea that there was at least a chance that the yearlong war could be quieted.
The negotiations “consisted of a long night and a long morning, but we have arrived at an accord on a cease-fire and a global end to the conflict,” President François Hollande of France said.
“It is a relief for Europe.”
Mr. Hollande said a broader agreement on ending the war would ultimately hinge on border control and the resolution of questions like the withdrawal of heavy weapons.
The marathon talks meant to quiet the war in Ukraine had appeared to be in doubt on Thursday as the four leaders negotiating the agreement canceled news briefings intended to announce an accord and returned to the negotiating table.
President Vladimir V. Putin of Russia, President Petro O. Poroshenko of Ukraine and Mr. Hollande, along with the German chancellor, Angela Merkel, haggled for more than 15 hours in talks that had begun Wednesday evening.
In the morning, rather than presenting the results at a collective briefing, the Russian and Ukrainian presidents had each planned to address reporters from their countries, while the leaders of Germany and France met with a different set of journalists.
Officials had said hours earlier that there would be a joint briefing in the press room of the ornate Independence Palace, where the negotiations have taken place.
The Ukrainian foreign minister, Pavlo A. Klimkin, sent out a tweet not long after dawn, saying that members of some delegations were “literally sleeping,” but that the negotiators for Kiev were still going strong.
Part of the urgency was that Ms. Merkel and Mr. Hollande were due at a Thursday afternoon summit meeting of the European Union in Brussels, which Mr. Poroshenko was also scheduled to address.
Having committed themselves to making one last effort to secure peace, however, it seemed that the French and German leaders were determined to wrest an agreement from the talks before leaving.
The return to the negotiating table was accompanied by a flurry of Russian news agency reports that Mr. Poroshenko had declined at the last minute to accept the outlines of the deal that addressed the independent status of the breakaway areas of Donetsk and Luhansk, as well as the demarcation line meant to form the spine of a demilitarized zone.
The separatists and their Russian patrons want a federal system that gives the breakaway regions independence over their foreign and economic policies, while Mr. Poroshenko had vowed that only some manner of decentralization was acceptable.
In addition, the truce line has shifted since an original deal was signed in September, creating a more cohesive whole from the two breakaway regions.
The town of Debaltseve remains a point of contention, with the Ukrainian troops holding it now surrounded.
Much of the negotiations overnight were believed to have been consumed by discussions over each of the 12 points of the protocol agreed last September, and efforts to come up with a working plan on how each might be implemented.
As the peace talks stalled, fighting continued in the disputed areas of southeastern Ukraine.
Pro-Russian rebel forces mounted a counterattack on areas east of the coastal city of Mariupol, trying to retake some of the ground seized in recent days by the volunteer, right-wing Azov Battalion.
Residents of the industrial port on the Sea of Azov, widely expected to be the next target of rebel attacks if the Minsk peace talks do not produce a truce, could hear heavy shelling throughout the morning.
City and military officials said the fighting did not hit civilian areas in the city, but was confined to small villages to the east.
Source: The New York Times