sentences:  General Zia encouraged Fundamentalist Islamic law and religious education in all segments of Pakistani society to build his legitimacy (which had become weak after he had overthrown a popular elected leader and had suspended democracy) on being a good Muslim ruler.Resistance to the Soviet invasion of Afghanistan was hailed as a religious duty and Pakistani intelligence and military services, with the help of the CIA, recruited, trained and armed Afghan mujahideen to fight the Soviet Army.In the process a vast network of madrases and hardline mosques were established.