Article 22 of the Constitution of India guarantees certain rights to a person who has been arrested and detained. Article 22(1) provides the right to be informed of the grounds for arrest and the right to consult and be defended by a legal practitioner of one's choice. Article 22(2) grants the right to be produced before the nearest magistrate within 24 hours of arrest and the right not to be detained beyond this period without the magistrate's authority.