In Sunil Batra v. Delhi Administration (1978 and 1980), the Supreme Court held that solitary confinement should be imposed only in exceptional cases and under strict legal procedures. It recognized that prolonged solitary confinement can amount to torture and violate the fundamental right to life and personal liberty under Article 21 of the Constitution. The court laid down guidelines to regulate prison administration and protect the human rights of prisoners.