Democracy ended with a military coup in 1977 against the leftist PPP, which saw General Zia-ul-Haq become the president in 1978. From 1977 to 1988, President Zia's corporatisation and economic Islamisation initiatives led to Pakistan becoming one of the fastest-growing economies in South Asia. While building up the country's nuclear program, increasing Islamisation, and the rise of a homegrown conservative philosophy, Pakistan helped subsidise and distribute US resources to factions of the mujahideen against the USSR's intervention in communist Afghanistan. Pakistan's North-West Frontier Province became a base for the anti-Soviet Afghan fighters, with the province's influential Deobandi ulama playing a significant role in encouraging and organising the 'jihad'.