Hand-picked by independence hero Julius Nyerere to succeed him, Mwinyi inherited a country in the grip of an economic crisis following years of failed socialist experiments.
He removed restrictions on private enterprise and eased bottlenecks on imports, earning the nickname Mzee Rukhsa, a Swahili phrase which roughly translates to Mr Permission. Mwinyi was born on May 8, 1925, in the former British colony known as Tanganyika and moved to Zanzibar to study Islam.
His father hoped he would become a spiritual leader, but the young Mwinyi took up teaching instead before entering politics in the 1960s after Tanganyika gained independence.
Following the 1964 merger between independent Tanganyika and Zanzibar to form Tanzania, he rose through the ranks to serve as ambassador to Egypt and minister of health, home affairs, and natural resources during the 1970s and early 1980s.
In 1984, he became the president of Zanzibar before Nyerere chose him to lead Tanzania.