1 of 5
Associated Press
Greek conservative New Democracy leader Antonis Samaras, right, is sworn in during a ceremony at the Presidential Palace as Greek president Karolos Papoulias, background, looks on, in Athens, on Wednesday, June 20, 2012. Samaras was sworn in as prime minister Wednesday at the helm of a three-party coalition that will uphold the country?s international bailout commitments. The move ends a protracted political crisis that had cast grave doubt over the country?s future in Europe?s joint currency and threatened to plunge Europe deeper into a financial crisis with global repercussions. (AP Photo/Petros Giannakouris)

ATHENS, Greece — Greece moved to end its protracted political impasse Wednesday, swearing in a new prime minister to lead a largely pro-bailout coalition tasked with saving the country's place in the eurozone and easing a European financial crisis with global repercussions.

Antonis Samaras, a 61-year-old U.S.-educated economist, became the fourth prime minister in eight months.

"I know well the need to restore the dignity of the Greek people that has been wounded," he said. "I know the need for a quick recovery of the economy to restore social justice and social cohesion."

Samaras, leader of the conservative New Democracy party, will head a three-party coalition that includes the socialist PASOK party and the small Democratic Left.

The new government faces massive financial challenges. It must deliver on pledges to implement painful austerity measures, including cutting tens of thousands of civil service jobs, in exchange for billions of dollars (euros) in rescue loans from other European countries and the International Monetary Fund.

"You are taking over the governance of the country at a difficult and historic moment. You have many battles to fight, both within Greece and abroad," the outgoing caretaker prime minister, Panagiotis Pikrammenos, told Samaras during their handover.

New Democracy narrowly beat the radical left-wing Syriza party in Sunday's elections, but fell short of enough votes to form a government on its own, leading to power-sharing talks for three days. Similar talks after an inconclusive May 6 election had collapsed after 10 days.