Martial law in Pakistan happens when the military takes over the government and temporarily replaces civilian rule. This has occurred several times, starting in 1958 under General Ayub Khan, and later in 1969, 1977, and 1999. During these periods, the military controls the country, political activities are limited, and the constitution is often suspended. Martial law is usually declared to solve political problems or maintain order, but it raises questions about democracy and the balance between civilian and military power.