The writ of habeas corpus is a fundamental safeguard against illegal detention. The ADM Jabalpur case significantly weakened this safeguard during emergencies.