The five types of writs (Habeas Corpus, Mandamus, Prohibition, Certiorari, and Quo Warranto) are instruments for enforcing fundamental rights, as guaranteed under Article 32 (to the Supreme Court) and Article 226 (to the High Courts) of the Constitution of India. Each writ serves a specific purpose to ensure justice and prevent arbitrary action by authorities or courts.