Caste is a European word, from Portuguese casta, for two overlapping Indian institutions. Varna is the ancient textual scheme that divides society into four ranks: Brahmins (priests and scholars), Kshatriyas (warriors and rulers), Vaishyas (merchants and farmers) and Shudras (laborers and servants). Outside and beneath the four stood groups later called untouchables, now Dalits, assigned work considered polluting. Jati, meaning birth, is the lived reality: thousands of local, hereditary groups, each associated with an occupation, each marrying within itself, eating by its own rules and ranked against its neighbors.
The system was justified by the ideas of Hinduism. Karma explained one's birth as the result of past lives, and dharma defined right conduct as fulfilling the duties of one's station. Rules about purity regulated who could share food, water or a temple with whom.
Caste was more flexible than the texts suggest. Jatis could rise or fall as a group over generations, successful warriors were recognized as Kshatriyas (as many Rajput clans were), and immigrant or newly conquered peoples were absorbed as new jatis. Merchant and artisan jatis functioned much like the Guilds of Europe, training members, setting standards and looking after their own. Because jatis regulated daily life themselves, Indian society held together whether or not a strong state existed, which helps explain how the subcontinent remained culturally coherent through long periods of political division.
The arrival of Muslim rule under the Delhi Sultanate after 1206 left caste largely intact, a major continuity of the period. Sultans governed through existing local elites, and most of the population remained Hindu. Islam taught the equality of believers, and some low-caste groups converted, but converts often kept caste-like distinctions. The sharpest critique came from the Bhakti Movement, whose saints such as Kabir denied that birth mattered to God, and later from Sikhism.
Under the British Raj, censuses and law codes recorded and ranked castes, making categories more rigid than before. Independent India outlawed untouchability in its 1950 constitution, drafted under the Dalit jurist B. R. Ambedkar, and created the quota policies described under Caste Reservation in India.