Martial law is the system of rules that takes effect when the military takes control of the normal administration of justice.
Usually martial law reduces some of the personal rights ordinarily granted to the citizen, limits the length of the trial processes, and prescribes more severe penalties than ordinary law. In many states martial law prescribes the death penalty for certain crimes, even if ordinary law does not contain that crime or punishment in its system.
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 like "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.
And how did I own myself?