Martial law is sometimes imposed during wars or occupations in the absence of any other civil government. Examples of this form of military rule include Germany and Japan after World War II or the American South during the early stages of Reconstruction. In addition it is used by governments to enforce their rule, for example after a coup d'état (Thailand 2006), when threatened by popular protests (Tiananmen Square protests of 1989), or to crack down on the opposition (Poland 1981). Martial law can also be declared in cases of major natural disasters; however most countries use a different legal construct, such as a "state of emergency".
In many countries martial law imposes particular rules, one of which is curfew. Often, under this system, the administration of justice is left to a military tribunal, called a court-martial. The suspension of the writ of habeas corpus is likely to occur.

Martial law allows the government to detain anyone deemed to be threatening state security for renewable 45-day periods without court orders and also give military courts the power to try civilians.
Public demonstrations are banned under the legislation.
Martial law in India is different from rest of the world. According to the Indian Constitution, during peacetime, governmental and the people's interests are under the control of the Prime Minister, Parliament, and the Supreme Court, but all armed forces (except police, which are under the control of the Home Ministry) are under the direct control of the Department of Defense and the President (who also controls the national guard and paramilitary forces). In case of a non-environmental crisis, all armed forces, national guard, and paramilitary forces, along with the Department of Defense, come under the strict orders of the President; while police, home ministry, justice department, and government comes under strict control of the Prime Minister (without any intervention by Parliament and the Supreme Court). In such a crisis, solving an issue/problem, stabilizing the nation, and defense are considered higher priorities than the people's interest.
In case of an environmental crisis, the Indian government declares states of emergency, in which the emergency relief forces of the Indian Armed Forces, the National Guard, and the police come under the strict control of the President of India.
So far, Indian government declared State of Emergency in the following times:-
NOTE:- Indian government declares state of emergency during any crisis that is administered as terrorist activity.
For further reading please browse through BBC Archives in South Asia section, relating to India.
During the 2006 Lebanon war, martial law was declared by Defense Minister Amir Peretz over the North of the country. The Israel Defense Forces were granted the authority to issue instructions to civilians, and close down offices, schools, camps and factories in cities considered under threat of attack, as well as to impose curfews on cities in the North. Instructions of the Home Front Command are obligatory under martial law, rather than merely recommendatory. The order signed by Peretz was in effect for 48 hours. It was extended by the Cabinet and the Knesset Foreign Affairs and Defense Committee over the war's duration.
After several tumultuous years, which witnessed the secession of East Pakistan, politician Zulfikar Ali Bhutto took over in 1971 as the first civilian martial law administrator in recent history, imposing selective martial law in areas hostile to his rule, such as the country's largest province, Balochistan. Following widespread civil disorder, General Muhammad Zia-ul-Haq overthrew Bhutto and imposed martial law in its totality on July 5, 1977 in a bloodless coup d'etat. Unstable areas were brought under control through indirect military action, such as Balochistan under Martial Law Governor, General Rahimuddin Khan. Civilian government resumed in 1988 following General Zia's death in an aircraft crash.
On October 12, 1999, the government of Prime Minister Nawaz Sharif was dissolved, and the Army took control once more. But no Martial Law was imposed. General Pervez Musharraf took the title of Chief Executive until the President Rafiq Tarar resigned and General Musharraf became President. Elections were held in October 2002 and Mir Zafarullah Khan Jamali became Prime Minister. Jamili premiership was followed by Chaudhry Shujaat Hussain and Shaukat Aziz. While the government was supposed to be run by the elected Prime Minister, there was a common understanding that important decisions were made by the President General Parvez Musharraf.
On November 03, 2007, President General Pervez Musharraf declared the state emergency in the country which is claimed to be equivalent to the state of Martial Law as the constitution of Pakistan of 1973, was suspended, and the Chief Justices of the Supreme Court were fired.
On November 12, 2007, President General Pervez Musharraf issued some amendments in the Military Act, which gave the Armed forces some additional powers.
The Philippines was under martial law again from 1972 to 1981 under the authoritarian rule of Ferdinand Marcos. Martial law was declared to suppress increasing civil strife and the threat of communist takeover following a series of bombings in Manila. The declaration of martial law was initially well-received by some segment of the people but became unpopular as excesses and human rights abuses by the military emerged. Torture was used in extracting information from their enemies. Proclamation No. 1081 (Proclaiming a State of Martial Law in the Philippines) was signed on September 21, 1972 and came into force on September 22 - interestingly enough exactly 28 years after President Jose P. Laurel's similar proclamations.
There were rumours that President Gloria Macapagal-Arroyo was planning to impose martial law to put an end to military coup plotters and general civilian dissatisfaction and criticism of the legitimacy of her presidency due to dubious election results. Instead, however, a "State of National Emergency" was imposed to crush a coup plot and tackle protesters which lasted from February 24, 2006 until March 3 of the same year.
, the Army can be called upon by cantonal (state) authorities for assistance (Assistenzdienst). This regularly happens in the case of natural disasters or special protection requirements (e.g., for the World Economic Forum in Davos). This assistance generally requires parliamentary authorization, though, and takes place in the regular legal framework and under the civilian leadership of the cantonal authorities. On the other hand, the federal authorities are authorized to use the Army to enforce law and order when the Cantons no longer can or want to do so (Ordnungsdienst). This power largely fell into disuse after World War II. See
.
The martial law concept in the U.S. is closely tied with the right of habeas corpus, which is in essence the right to a hearing on lawful imprisonment, or more broadly, the supervision of law enforcement by the judiciary. The ability to suspend habeas corpus is often equated with martial law. Article 1, Section 9 of the U.S. Constitution states, "The privilege of the Writ of Habeas Corpus shall not be suspended, unless when in Cases of Rebellion or Invasion, the public Safety may require it."
In United States law, martial law is limited by several court decisions that were handed down between the American Civil War and World War II. In 1878, Congress passed the Posse Comitatus Act, which forbids military involvement in domestic law enforcement without congressional approval. The Military Commissions Act of 2006 possibly rescinds these limits by suspending habeas corpus, but the law is not clear on whether it applies to U.S. Citizens. Since, USNORTHCOM
has increased its direct involvement with civilian administration.
On September 15, 1863, President Lincoln imposed Congressionally-authorized martial law. The authorizing act allowed the President to suspend habeas corpus throughout the entire United States. Lincoln imposed the suspension on "prisoners of war, spies, or aiders and abettors of the enemy," as well as on other classes of people, such as draft dodgers. The President's proclamation was challenged in Ex parte Milligan (71 US 2 [1866]). The Supreme Court ruled that Lincoln's imposition of martial law (by way of suspension of habeas corpus) was unconstitutional.
Despite the recent laws passed, a test of the president's power to declare martial law without the consent of Congress would likely run afoul of the Constitution which has exclusive power to suspend Habeas Corpus.
The National Guard is an exception, since unless federalized, they are under the control of state governors.
This was changed briefly: Public Law 109-364, or the "John Warner Defense Authorization Act of 2007" (H.R.5122), was signed by President Bush on October 17, 2006, and allowed the President to declare a "public emergency" and station troops anywhere in America and take control of state-based National Guard units without the consent of the governor or local authorities. Title V, Subtitle B, Part II, Section 525(a) of the JWDAA of 2007 reads "The [military] Secretary [of the Army, Navy or Air Force] concerned may order a member of a reserve component under the Secretary's jurisdiction to active duty...The training or duty ordered to be performed...may include...support of operations or missions undertaken by the member's unit at the request of the President or Secretary of Defense." The President signed the Defense Authorization Act of 2008 on January 13, 2008. However, Section 1068 in the enacted 2008 defense authorization bill (H.R. 4986: "National Defense Authorization Act for Fiscal Year 2008") repealed this section of PL 109-364.
See also "What Is Martial Law? And is New Orleans under it?" by the Slate Explainer.