Kanpur; formerly Cawnpore; is the 12th most populous city in India. It is the administrative headquarters of Kanpur Nagar district and Kanpur division. It is the second largest industrial town in north India, following Delhi. The name is believed to have derived from Karnapur (meaning "town of Karna", one of the heroes of the Mahabharata). Another theory is that it came from the nearby town of Makanpur, earlier known as Khairabad, where the Sufi saint of the Madariya Sufi order, Badiuddin Zinda Shah Madar, settled.