On a federal level, only the president has the power to impose Martial Law. ... The ability to suspend habeas corpus is related to the imposition of martial law.
Neither constitutional provision includes a direct reference to martial law. However, the Supreme Court has interpreted both to allow the declaration of martial law by the president or Congress. On the state level, a governor may declare martial law within her or his own state.