By the end of 18th century, the whole of Kerala fell under the control of the British, either administered directly or under suzerainty. The Malabar Special Police was formed by the colonial government in 1884 headquartered at Malappuram. There were major revolts in Kerala during the independence movement in the 20th century; most notable among them is the 1921 Malabar Rebellion and the social struggles in Travancore. In the Malabar Rebellion, Mappila Muslims of Malabar rebelled against the British Raj. The Battle of Pookkottur adorns an important role in the rebellion. Some social struggles against caste inequalities also erupted in the early decades of 20th century, leading to the 1936 Temple Entry Proclamation that opened Hindu temples in Travancore to all castes.