This casebook is the first to cover federal habeas corpus comprehensively, presenting post-conviction review and executive detention litigation in an accessible way. It is designed both for standalone courses on habeas corpus, and for courses focusing on post-conviction litigation, wrongful convictions, and national security detention. The first two chapters introduce students to the habeas privilege and the Suspension Clause. A four-chapter unit on post-conviction litigation carefully explores cognizability, procedural doctrines, and merits adjudication. Two chapters develop the role habeas plays in review of immigration and other types of civil detention. A substantial two-chapter unit examines habeas review of military custody.