In the Confederacy, Jefferson Davis also suspended "habeas corpus" and imposed martial law. Shortly after his inauguration as president of the Confederacy, an act of the Confederate Congress of February 27, 1862, was passed authorizing Davis to suspend the writ of habeas corpus and declare martial law "in such towns, cities, and military districts as shall, in his judgment, be in such danger of attack by the enemy". The Confederate Congress passed a limiting act two months to restrict the suspension of the writ "to arrests made by the authorities of the Confederate Government, or for offences against the same" and to add a sunset clause providing that authorization to suspend habeas corpus would expire 30 days after the next meeting of Congress.