The military holds a significant place in the history of Pakistan, as the Pakistani Armed Forces have played, and continue to play, a significant role in the Pakistani establishment and shaping of the country. Although Pakistan was founded as a democracy after its independence from the British Raj, the military has remained one of the country's most powerful institutions and has on occasion overthrown democratically elected civilian governments on the basis of self-assessed mismanagement and corruption. Successive governments have made sure that the military was consulted before they took key decisions, especially when those decisions related to the Kashmir conflict and foreign policy. Political leaders of Pakistan are aware that the military has stepped into the political arena through coup d'état to establish military dictatorships, and could do so again.