Kosovo's parliament approved former leftist rebel leader Albin Kurti as prime minister on Monday, following four months of haggling over official posts.
He and his cabinet were installed just a day before the deadline, narrowly avoiding a political crisis.
Kosovo's two major parties had agreed on a long-awaited deal on Sunday to form a new coalition government nearly four months after the country held snap elections when Prime Minister Ramush Haradinaj resigned.
Kurti's coalition is comprised of the leftist Vetevendosje (Self Determination "VV") party and the center-right Democratic League of Kosovo (LDK), the two leading parties in the country's parliament.
Albin Kurti, 44, of the VV party announced he would become prime minister under the agreement and collaborate with the LDK party as well as other groups.
"We will be the government of economic development and employment," said Kurti, adding that he aims to create a "socially just state."
Together, the coalition parties hold 77 of the parliament's 120 seats.
Kurti, now a self-described Social Democrat, once led violent street riots and was dubbed Kosovo's "Che Guevara." He first gained notoriety by organizing demonstrations in the 1990s against Serbia's repression of Kosovo's ethnic Albanian majority. What followed was a two-year stint in a Serbian prison.
New diverse coalition
Snap elections took place in October last year after Haradinaj stood down as prime minister following allegations of war crimes. An EU-funded war crimes court in The Hague had summoned the former leader for questioning.
Kosovo's new coalition includes six groups representing Bosniaks, Serbs, Turks and other ethnic minorities.
Under the new agreement, the government will be made up of 15 ministries, with the VV and the LDK appointing six ministers each. The remaining three posts will be filled by representatives from ethnic minorities.
The VV controls 29 and the LDK 28 of the 120 seats in the new parliament.
Kosovo War
Civil conflict ravaged the highly disputed territory from 1998 to 1999. NATO deployed airstrikes over Kosovo to drive out Serbian forces accused of killing ethnic Albanian civilians.
In 2008, Kosovo declared independence from Serbia. Kosovo is not recognized as an independent state by several countries, including Serbia. The new Kosovo government will be expected to negotiate a deal with bordering Serbia.
"We believe it is a good deal that will enable changes that our country needs to make," said LDK leader Isa Mustafa. "We want this government to be successful and to meet people's expectations at last."