During the Civil War, President Abraham Lincoln suspended the right of habeas corpus, which is a legal protection that allows individuals to challenge their detention in court, for the main reason of preserving the Union and maintaining national security.