Former Turkish president Suleyman Demirel, one of the dominant figures in the country's politics for the past half century, has died at 90.
Doctors at Guven Hospital, Ankara, said Mr Demirel died of heart failure and a respiratory tract infection.
Mr Demirel was president between 1993 and 2000, the culmination of a 40-year career that saw him serve seven spells as prime minister - two of them ending in his government's overthrow by military coups.
He believed that his governments of the 1960s and 1970s deserved much of the credit for a deep transformation of Turkey's economy and society, bringing higher living standards for most of his countrymen.
But critics say Mr Demirel symbolised a culture in which power came before principles and helped entrench patronage and corruption.
They point to a notorious "family photograph", which pictured him surrounded by relatives and associates from the business world, some of whom were later jailed for corruption.
"Our respected president who has left indelible traces from the water we drink, to the electricity we use, from the schools we study at, to these hospitals, the damns and the airports has passed away," said Aylin Cesur, Mr Demirel's personal doctor, announcing his death at the hospital.
Mr Demirel launched his political career in the aftermath of the 1960 military coup that deposed the government of Adnan Menderes. Mr Menderes and two cabinet colleagues were executed and many leading figures in their party were banned from politics - leaving a vacuum on the centre-right.
Into that gap strode the political unknown Mr Demirel. He had trained as an engineer, and headed a dam-building programme under Mr Menderes before leaving for the private sector.
At 40 - youthful by Turkish political standards, then and now - Mr Demirel was a surprise choice as leader of the newly-formed Justice Party, a centre-right successor to Mr Menderes' party.
The first leading politician from a younger generation that had played no part in the formation of a modern, independent Turkish state after the First World War, Mr Demirel came to power with a landslide win in 1965.
His populist style - he was known as "Sulu the shepherd" because of his village background - and his canny use of the symbols of Islam proved a vote winner in the conservative countryside, where most Turks lived. His government had to balance the demands of its rural support base with the need to push Turkey into the industrial era.
The balancing act seemed to be working in the mid-1960s, with annual growth of around 6% a year as electricity and roads reached corners of Turkey that had never seen either.
But by 1970, Mr Demirel was on the defensive as rising political radicalism brought social unrest. On the left, students and workers groups demanded radical reform, while Mr Demirel was being outflanked on the right by new nationalist and pro-Islamic parties.
When the ideological conflict started to turn violent, Turkey's powerful military intervened. Generals issued an ultimatum that forced Mr Demirel out of office in 1971 in the so-called "coup by memorandum".
Successive governments, led first by military-backed technocrats and then by Mr Demirel's great rival Bulent Ecevit, failed to get a grip on the spiralling violence, which worsened in the 1970s as Turkey's economy, hit by the oil price crisis, slumped into crisis.
Mr Demirel was back in power in 1975, but his unwieldy coalition - including Islamists and nationalists - could not halt Turkey's slide into chaos. Many blamed him for turning a blind eye to his nationalist coalition partners, who openly incited violence that saw dozens killed weekly in clashes between left and right-wing gangs.
Turkey was heading towards another military coup, which arrived in 1980.
According to late journalist Mehmet Ali Birand's account of the coup, Mr Demirel was on the telephone to his interior minister on the night of September 11 1980, when the line went dead. Looking out of the window of the prime minister's residence, he saw that his usual bodyguards had been replaced by armed soldiers.
"It is a pity, a pity for the motherland, a pity for us all," the outgoing premier said, before packing his bags for prison.
Mr Demirel was banned from politics, but the ban was repealed in the late 1980s. He became prime minister again in 1991, and president in 1993 on the death of Turgut Ozal.
As president, he fostered ties with the Turkic republics of the former Soviet Union and took credit for brokering the peaceful ousting from power of an Islamist government under pressure from the secular-minded military in 1997, at a time when many feared a coup. The removal was later dubbed Turkey's "post-modern coup".
A favorite slogan of Mr Demirel's, used to counter critics who accused him of U-turns and inconsistencies, is often quoted by Turks discussing the pragmatic leader's political strengths and weaknesses.
"Yesterday was yesterday - and today is today," he was fond of telling journalists.
His wife Nazmiye died in May 2013. The couple had no children.