reign of Praudha Deva Raya". Similarly, the scripture of Lingayatism Basava Purana was completed in 1369 during the reign of Vijayanagara ruler Bukka Raya I. Ikkeri Nayakas, Keladi dynasty (16th-18th century) The Virasaivas were an important part of the Vijayanagara empire army. They fought the Bijapur Sultans, and the Virasaiva leader Sadasiva Nayaka played a key role in leading the capture of Sultanate fortress such as at Gulbarga. This success led to Nayaka being appointed as the governor of the coastal Karnataka Kanara region. This emerged as a Lingayat dynasty, called the Nayakas of Keladi. Another group of Virasaivas merchants turned warriors of the Vijayanagara empire were successful in defeating the Deccan Sultanates in the Lepakshi region (Karnataka-Andhra Pradesh border region). After the collapse of the Vijayanagara empire, the Lingayat Keladi/Ikkeri dynasty ruled the coastal Karnataka till the invasion and their defeat by Hyder Ali seeking a Mysore-based Sultanate. The Virasaiva dynasty Nayaka rulers built major 16th to 18th-century shrines and seminaries of Lingayatism, repaired and built new Hindu and Jain temples, sponsored major Hindu monasteries such as the Advaita Sringeri matha as well as forts and temples such as at Chitradurga. They also started new towns and merchant centres in coastal and interior Karnataka. Caste-status debates (19th–20th century) In early decades of the 19th century, the Lingayats were described by British officials such as Francis Buchanan as a conglomeration of Hindu castes with enormous diversity and eclectic, egalitarian social system that accepted converts from all social strata and religions. However, the British officials also noted the endogamous tradition and hereditary occupations of many Lingayats, which made their classification difficult. In the 1871 and the 1881 colonial era census of British India, Lingayats were listed as shudras. According to the sociologist M. N. Srinivas, Lingayats traditionally believed themselves to be equal in status to Brahmins, and some orthodox Lingayats were so anti-Brahmin that they would not eat food cooked or handled by Brahmins. The egalitarian Lingayats, states Srinivas, had been a major force in Sanskritization of Kannada-speaking (Karnataka) and nearby regions but against elitism. After being placed in the shudra category in the 1881 census, Lingayats demanded a higher caste status. This was objected and ridiculed by a Brahmin named Ranganna who said that Lingayats were not Shaiva Brahmins given their eclectic occupations that included washermen, traders, farmers and others, as well as their exogamous relationships with the royal family.