IRBIL, Iraq -- As he stepped into office in 2005 to become Iraq's first Kurdish president, Jalal Talabani told his followers, "I am casting off my Kurdish clothes and wearing Iraqi ones instead. You must accept that." It was a symbolic call for unity: A longtime leader of Kurdish fighters, Talabani became the head of state of what was supposed to be a new Iraq, freed two years earlier from the rule of Saddam Hussein.
Talabani's death on Tuesday was a reminder of how that experiment in unity has frayed nearly to the point of unravelling: Only a week earlier, Kurds voted overwhelmingly in a referendum in support of breaking away from Iraq to form an independent state, sending tensions spiraling with the central government in Baghdad and with Iraq's neighbors, who fear similar Kurdish separatist sentiment on their soil.
At the time of the vote, Talabani had been out of politics for nearly five years after a 2012 stroke left him debilitated and permanently hospitalized. He died in a Berlin hospital at the age of 83 after his condition rapidly deteriorated, according to Marwan Talabani, a relative and senior official in the office of Talabani's son, the deputy prime minister of the Kurdish region.
While in power, Talabani was seen as a unifying elder statesman who could soothe tempers among Iraq's Shiites, Sunnis and Kurds. But the country's centrifugal forces only accelerated after he was hospitalized as Iraq battled the Sunni extremists of the Islamic State group and faced growing demands for Kurdish independence.
The referendum vote, which was led by his longtime Kurdish rival, regional President Masoud Barzani, is not expected to lead to a Kurdish state anytime soon and has further isolated the small land-locked region. Iraq and its neighbors have rejected the vote, and Baghdad has banned international flights and threatened to take control of the autonomous Kurdish region's borders.
"If Talabani had been president of Iraq today for sure the approach would have been different, the balance in Kurdistan would have been different. I don't think it would have come to a referendum in the first place," said Joost Hiltermann, of the International Crisis Group.
"Basically with Talabani's incapacitation (Kurdish) strength in Baghdad diminished and ... the weight shifted decisively to Barzani and the Kurdish region," he said.
Talabani came from a generation of Kurdish leaders who spent decades fighting for self-rule and whose people were often brutally repressed by the central government.
Born in a tiny village north of the city of Irbil on Nov. 12, 1933, Talabani was in his early teens when he joined the Kurdistan Democratic Party, or KDP, the main Kurdish political force at the time trying to carve out an autonomous homeland for Iraq's Kurds.
In the 1960s, he joined the Kurdish uprising against the Iraqi government. When the revolt collapsed in 1975, Talabani broke off from the Barzani-headed KDP to form the Patriotic Union of Kurdistan, or PUK. To this day Kurdish politics in Iraq remains dominated by the two families: the Barzanis in Irbil and the Talabanis in Sulaimaniyah.
A year later, Talabani again took up arms against the central government and eventually joined forces with Iran in the Iran-Iraq war. In the late 1980s, Saddam launched the Anfal Campaign, in which more than 50,000 Kurds were killed, many by poison gas attacks.
Iraq's Kurds took their first steps toward autonomy in the early 1990s under the protection of a U.S.-enforced no-fly-zone aimed at halting Saddam's killings. But the Kurds quickly fell into infighting. Pitched battles between forces loyal to Barzani and those who sided with Talabani killed thousands and only subsided when Barzani called on Saddam's army to help him push back Talabani's men.
As the U.S. prepared to oust Saddam in the 2003 invasion, Talabani's PUK worked with the CIA. After Saddam's fall, Talabani and Barzani came together to govern their autonomous region, but ultimately Talabani's high profile took him to Baghdad.
He was chosen by parliament as interim president in April 2005. A year later, parliament made him full president under the new constitution, re-electing him to a second four-year term in 2010.
Talabani's ascension left Barzani to preside over the Kurdish government alone, an irony that Talabani wryly noted in February 2005. "He personally prefers that I be in Baghdad and he be in Kurdistan," Talabani said.
In Baghdad, Talabani established himself as the voice of the Kurds and was a skilled player in Iraq's sometimes bloody power politics.
Sunni Arabs remained suspicious of Talabani, pointing to his Iranian ties. And Talabani angered many Iraqis in 2011 when he described Kirkuk, a multi-ethnic city claimed by the Kurds and the central government, as a Kurdish Jerusalem.
Still, Talabani sought to cast himself as being above the fray, using the largely ceremonial powers of his post to try to take the edge off conflicts that flared among the country's factions.
"Contrary to all Iraqi politicians, Talabani believes that making concessions to other groups in order to save his country does not represent a humiliation to his personal dignity,'" said analyst Hadi Jalo.
In a statement, former President George W. Bush praised Talabani's efforts to try to unite his country after Saddam's ouster, saying: "He saw the potential of a free and united Iraq. And he worked tirelessly to deliver peace and liberty to his people."
Long overweight and afflicted by heart problems, Talabani suffered a stroke in December 2012 and was taken to Germany for treatment.
With his departure from political life, Iraq lost one of its few brakes on the divisions among its rival factions and Barzani began dealing with Baghdad directly on behalf of Iraq's Kurds.
Disagreements between Baghdad and the Kurdish region over the sharing of oil wealth and the fate of Kirkuk and other disputed areas simmered for years. But those divisions went largely unaddressed as Iraqi and Kurdish forces battled the Islamic State group after it swept across the country in the summer of 2014.
Barzani, who had already capitalized on a split in Talabani's political party years earlier, saw his power grow as the U.S.-led coalition rushed military aid to his forces to help them battle the extremists. He later spearheaded the independence referendum, which many of his critics saw as a bid to extend his rule.
Talabani never expressed an opinion about the referendum, and his supporters were divided on it.
His absence left a "political vacuum," said Falah Mustafa, the head of the Kurdish region's foreign relations department. But he said Talabani's "legacy for the Kurdish cause will remain a source of inspiration among the people of Kurdistan and beyond."
Talabani is survived by his wife, Hiro Ibrahim Ahmed, and his two sons. One of them is Qubad Talabani, the deputy prime minister of the Kurdish region.
Associated Press writers Adam Schreck and Salar Salim contributed to this report.