Article 5 of the European Convention on Human Rights (ECHR) provides the right to liberty and security of person. You can only be deprived of your right to liberty in the limited circumstances set out in the Convention. Deprivation of liberty can include detention, for example if you are in prison or detained under the Mental Health (NI) Order 1986.