Habeas Corpus takes care of individual rights in case of imprisonment.
Step-by-step explanation:
Habeas Corpus is recourse in law through which a person can question and challenge his imprisonment. The custodian should have the proper authority to take the person to prison. This way it protects one's rights because it helps to find if the person should be really in jail or not.
It is like a basic instrument protecting one's right. Because if the custodian doesn't have any statements or evidence against him [proper lawful authority to do so], the prisoner will be released.