The Pakistan Armed Forces were formed in 1947, when Pakistan gained independence from the British Empire. Since then, they have played a decisive role in the modern history of Pakistan, most notably due to fighting major wars with India in 1947–1948, 1965 and 1971. The armed forces have seized control of the government on several occasions, consequently forming what analysts refer to as a deep state referred to as "The Establishment". The need for border management led to the creation of paramilitary forces to deal with civil unrest in the North-West, as well as the security of border areas in Punjab and Sindh by paramilitary troops. In 2017, the Pakistan Armed Forces had approximately 654,000 active personnel, excluding 25,000–35,000+ personnel in the Strategic Plans Division Forces and 482,000 active personnel in the various paramilitary forces. The military has traditionally had a large pool of volunteers, and therefore conscription has never been brought into effect, although both the Constitution of Pakistan and supplementary legislation allow for conscription in a state of war.