The most recent amendments to the Mental Health Act in England and Wales received Royal Assent on 19 July 2007. However, the need to manage persons with learning disabilities and severe mental illness by containing them in a protected environment under legal jurisdiction was appreciated more than two centuries ago, with the first legislative framework dating back to the 1713 Vagrancy Act, which provided specifically for the detention of lunatics.