Kozhikode is bounded on the north by Kannur district, on the south by Malappuram district, on the east by Wayanad district and on the west by the Arabian Sea.  In their time, social life was organized on the basis of occupation and caste system, and before that the system in most societies was indiscriminate. During the time of the Zamorin, there were constant wars between foreigners and natives. The Zamorin finally surrendered in front of Hyder Ali's Mysore army. Tipu Sultan was the first to enact a law requiring landowners to pay land tax. In 1805, Malabar was made a district of Madras Province. This practice continued until the reorganization of the Constitution in 1961.