Field Marshal Muhammad Ayub Khan became Pakistan's first military dictator and second president after taking power in a bloodless coup in 1958. As president, he introduced various economic and political reforms but faced opposition over perceived favoritism towards West Pakistan. His presidency also saw the 1965 war with India and the Tashkent Declaration that ended hostilities. Facing growing public resentment, especially from East Pakistan, Ayub resigned in 1969 and handed power to General Yahya Khan.