The Greek parliament has narrowly passed an austerity package, despite violent protests on its doorstep.
The ruling New Democracy and PASOK parties passed the bill with 153 votes in a 300 seat parliament, despite the abstention of junior government partner the Democratic Left.
Seven New Democracy and PASOK parliamentarians were ejected from their parties for not voting in favour of the measures.
The bill covered the bulk of a 13.5 billion euro ($17 billion) program of spending cuts and tax hikes, as well as measures to make it easier to hire and fire workers.
Violent protests A demonstration outside the Greek parliament has turned violent, with protesters hurling petrol bombs at police.
About 80,000 Greek protesters gathered outside parliament as MPs prepared for the late-night vote on unpopular austerity measures.
Some demonstrators threw petrol bombs at riot police, who responded with volleys of tear gas and water cannons.
At least 35 people were detained.
There were no reports of serious injuries but at least four protesters suffered breathing problems, police said.
The anti-austerity rally appeared to be the largest in Athens since summer last year and trade unions have held a 48-hour strike, crippling public transport, schools and banks.
Prime minister Antonis Samaras has pleaded with parliament, saying there will be chaos if the $17 billion worth of cuts are not voted through.
"Today we vote on whether we will remain in the eurozone or return to international isolation, meet complete bankruptcy and end up in the drachma," Mr Samaras said.
The cuts are vital to securing the country's next round of bailout funds and staving off bankruptcy.
However, the left wing Syriza party says the bailout policies are catastrophic and absurd.