Greece has agreed a bailout deal "in principle" with its creditors, the European Commission has said.
The Commission said a technical agreement had been reached with Greece, which now requires political approval.
Earlier, Greece's Finance Minister Euclid Tsakalotos had said "two or three small issues," were yet to be resolved with lenders, following overnight talks in Athens.
A deal is needed to keep the country in the eurozone and avert bankruptcy.
The Greek government is hoping to push a new €86bn (£60bn) three-year agreement through parliament later this week. The country needs a deal by 20 August, when it has a debt repayment of about €3bn to make to the European Central Bank.
Technical deal
A European Commission spokeswoman said a technical deal had been reached last night between parties including Greece, the International Monetary Fund and the European Central Bank.
She said a series of phone calls between political leaders would now take place.
A Greek official said earlier that Greece agreed the function of a new independent privatisation fund, and how non-performing bank loans will be administered. Both issues had been key sticking points in negotiations. "Finally, we have white smoke," the official said.
Deregulation of the natural gas market, another sticking point, was also agreed.
But Finnish Finance Minister Alexander Stubb sounded a cautious note, saying more work needed to be done with the details to finalise the agreement. The Eurogroup of eurozone finance ministers is to meet on Friday to discuss approval of the deal, Spanish Prime Minister Mariano Rajoy said.
His centre-right People's Party, which has a majority in the Spanish parliament, will be asking other parties to vote in favour of the agreement, he added.
Greek bailout deal - some key points*
-Phasing out early retirement and gradual increase of pension age to 67 by 2022
-Agreement to recapitalize banks and manage non-performing loans
-Deal on primary surplus targets: 0.25% deficit for 2015, 0.5% surplus in 2016, 1.75% in 2017 and 3.5% in 2018
-Review of Greek social welfare system with aim of cutting expenditure
-Deregulation of gas market by 2018; privatization plans for ports at Piraeus and Thessaloniki
-Opening up of professions and tightening definition of who is a farmer
-Increase in tax on shipping
*According to Greek reports - EU officials not confirming