The former Yugoslavia’s last prime minister, Ante Markovic, who tried to prevent the country’s bloody breakup in the 1990s, has died. He was 87.

Croatia’s state HINA news agency, quoting unnamed family sources, said Mr. Markovic died Nov. 28 in the Croatian capital of Zagreb. The cause of death was not reported.

Dzevad Haznadar, his business partner in the Bosnian capital, Sarajevo, said Mr. Markovic died suddenly in his apartment in Zagreb of yet unknown causes after suffering “minor cold” symptoms.

Mr. Markovic, a Croat born in Bosnia, became Yugoslavia’s prime minister in March 1989, two years before the former communist country started unraveling along ethnic lines.

During his tenure, Mr. Markovic launched an ambitious program of pro-Western economic reforms, including privatization of state-run companies and stabilization of Yugoslavia’s currency, the dinar. The result of his monetary reform was a halt to soaring inflation and a temporary rise in the country’s living standards.

Mr. Markovic was popular among Yugoslavia’s liberals because of his reforms, which brought the country to the threshold of the European Union. But he was hated by nationalists for his unifying stands and efforts to mediate between increasingly hostile leaders of the six former Yugoslav republics.

In July 1990, Mr. Markovic formed a political party supporting a reformed Yugoslav federation. He was defeated in the elections by nationalist and separatist parties.

Before he resigned in December 1991 under the pressure from nationalists, Mr. Markovic tried to find a compromise between Slovenia and Croatia, the republics seeking to secede, and Serbia, which insisted that Yugoslavia remain a single entity. His efforts failed, and the country plunged into a series of ethnic wars.

“He was always against war, against the breakup of the country,” said Bogic Bogicevic, the Bosnian member of Yugoslavia’s collective presidency at the time of Mr. Markovic’s tenure. “The others who wanted war and were for the breakup of the country were obviously more successful.”

In 2003, he appeared as a prosecution witness at the war crimes trial of former Serbian leader Slobodan Milosevic at the tribunal in The Hague, Netherlands.

He testified that Milosevic and former Croatian President Franjo Tudjman both told him that they made an agreement on the eve of the war in Bosnia in 1991 to divide the former Yugoslav republic between Serbia and Croatia.

After the wars, Mr. Markovic was a businessman and a consultant for governments and banks.

Survivors include his wife and two children.

— Associated Press

Associated Press writers Dusan Stojanovic in Belgrade, Serbia, and Sabina Niksic in Sarajevo, Bosnia, contributed to this report.