records in Brahmanical religious writings dating back to the seventh-century. In these texts, some described Kayasthas as Kshatriyas, while others often described them as a 'mixed-origin' caste with Brahmin and Shudra components. This was probably an attempt by the Brahmins to rationalize their rank in the traditional caste hierarchy and perhaps a later invention rather than a historical fact. Late medieval India In Bengal, during the reign of the Gupta Empire beginning in the 4th century, when systematic and large-scale colonisation by Indo-Aryan Kayasthas and Brahmins first took place, Kayasthas were brought over by the Guptas to help manage the affairs of state. After the Muslim conquest of India, they mastered Persian, which became the official language of the Mughal courts. Some converted to Islam and formed the Muslim Kayasth community in northern India. Bengali Kayasthas had been the dominant landholding caste prior to the Muslim conquest, and continued this role under Muslim rule. Indeed, Muslim rulers had from a very early time confirmed the Kayasthas in their ancient role as landholders and political intermediaries. Bengali Kayasthas served as treasury officials and wazirs (government ministers) under Mughal rule. Political scientist U. A. B. Razia Akter Banu writes that, partly because of Muslim sultans' satisfaction with them as technocrats, many Bengali Kayasthas in the administration became zamindars and jagirdars. According to Abu al-Fazl, most of the Hindu zamindars in Bengal were Kayasthas. Maharaja Pratapaditya, the king of Jessore who declared independence from Mughal rule in the early 17th century, was a Bengali Kayastha. British India During the British Raj, Kayasthas continued to proliferate in public administration, qualifying for the highest executive and judicial offices open to Indians. Bengali Kayasthas took on the role occupied by merchant castes in other parts of India and profited from business contacts with the British. In 1911, for example, Bengali Kayasthas and Bengali Brahmins owned 40% of all the Indian-owned mills, mines and factories in Bengal. Modern India The Chitraguptavanshi Kayasthas, Bengali Kayasthas and CKPs were among the Indian communities in 1947, at the time of Indian independence, that constituted the middle class and were traditionally "urban and professional" (following professions like doctors, lawyers, teachers, engineers, etc.) According to P. K. Varma, "education was a common thread that bound together this pan Indian elite" and almost all the members of these communities could read and write English and were educated beyond school. The Kayasthas today mostly