The Cotton Mills and Factories Act of 1819 banned the employment of children under the age of nine, and restricted the hours of work for those under sixteen years of age to sixteen hours a day. Such legislation was difficult to enforce, but in 1833 a new Factory Act not only further limited the hours of work for children and required them to have at least two hours of education a day, it also set up a Factory Inspectorate.