Pakistan is officially a federal republic, but during a long period in its history it changed to a democratic state and a military dictatorship. Military dictators include Ayub Khan in the 1960s, General Zia-ul-Haq in the 1980s.