Zia-ul-Haq introduced several measures to Islamize Pakistan between 1977-1988 after declaring martial law. He established Sharia courts, introduced Islamic laws like Hudood Ordinance, and made Islamiyat and Pakistan Studies compulsory subjects. Zia also received significant foreign funds due to Pakistan's support for the Afghan mujahideen fighting the Soviet invasion, allowing him to strengthen the military and undertake some economic reforms. However, he consolidated power by restricting the courts and establishing a military-dominated government.