AmarnepalNepal Data
History & heritage

Jayasthiti Malla's Caste Code & the Manava Nyaya Shastra

Jayasthiti Malla (reigned 1382-1395 AD) was the Malla king who reorganised the Newars of the Kathmandu Valley into a graded, occupation-based caste order and had Nepal's first written law code, the Manava Nyaya Shastra (Nyaya Vikasini), compiled around 1380 AD. He also standardised weights, land measures and the building brick. These reforms fixed hereditary occupations, courts and social ranks that shaped Newar society for centuries.

RulerJayasthiti Malla, Malla king of the Kathmandu Valley (Nepal Mandala)
Reign1382-1395 AD (approx. 1439-1452 BS)
QueenRajalladevi of the Bhaktapur royal line
Caste reformStandardised Newar society into a graded, occupation-based caste order (traditionally cited as 64 castes)
Law codeManava Nyaya Shastra (Nyaya Vikasini), compiled c. 1380 AD (c. 1436 BS) - Nepal's first written law code
Code structureAround 17-18 title-groups of civil and criminal law; punishments often graded by caste
Legal sourcesBased on Hindu Dharmashastra, chiefly the Narada Smriti and Manusmriti
Measurement reformStandardised mana, pathi, pau and dharni units; land graded by yield; regulated the building brick
In depth

Who was Jayasthiti Malla?

Jayasthiti Malla was a Malla king who ruled the Kathmandu Valley (Nepal Mandala) in the late 14th century, conventionally dated 1382-1395 AD (roughly 1439-1452 Bikram Sambat). He rose to power by marriage into the royal line, wedding Rajalladevi, a princess of the Bhaktapur royal house, and gradually consolidated authority over the three Valley towns of Bhaktapur, Kathmandu (Kantipur) and Patan (Lalitpur), which had drifted toward fragmented, quarrelsome rule.

The historian D.R. Regmi, in 'Medieval Nepal', and Mary Slusser, in 'Nepal Mandala', portray his reign as a turning point: a period of political consolidation followed by deliberate social, legal and administrative ordering. Chronicles (vamshavalis) remember him as a strong, pious and reform-minded ruler who imposed order after a spell of instability, including foreign raids on the Valley.

Jayasthiti Malla is best remembered not for conquest but for codification. He is credited with turning custom into written rule across three linked areas: the ranking of society by caste and occupation, the compilation of a law code, and the standardisation of measurement. Together these gave the Valley a more uniform framework of law, labour and trade than it had known before, which is why exam and general-knowledge questions so often single him out.

The caste code: dividing the Newars by occupation

Jayasthiti Malla's most famous reform was the systematic ranking of Newar society into a hierarchy of castes fixed to hereditary occupations. He did not invent caste in the Valley, which already had layered social groups reaching back to the Lichchhavi era, but he is credited with standardising and formalising it into a graded order administered by the state. Priestly, administrative, artisan, farming, service and lowest-ranked groups were each assigned characteristic occupations, dress, and rules of commensality (who may eat and intermarry with whom).

Nepali tradition and school curricula commonly summarise this as a division into 64 castes (jat), a figure repeated widely in textbooks. Scholars treat the exact number with some caution, because chronicle lists vary and the classification evolved after his reign; the durable point is that he imposed a comprehensive, occupation-linked caste framework rather than a precise, unchanging tally. The scheme drew on Hindu varna ideas (Brahmin, Kshatriya, Vaishya, Shudra) but was worked out for the specifically Newar society of the Valley.

In practice the code tied families to trades: for example Rajopadhyaya Brahmins and Vajracharya-Shakya Buddhist priests at the top of their respective religious orders, then scribes and administrators, then artisan castes such as carpenters, masons, painters and metalworkers (many now grouped as Shilpakar), the large Jyapu (Maharjan) farming population, and various service and 'untouchable' groups at the base. Rank governed occupation, ritual purity, and marriage. This occupational specialisation is often cited as having sharpened craft skills and reduced idleness, even as it hardened social inequality.

  • Priestly castes: Rajopadhyaya (Hindu) and Vajracharya-Shakya (Buddhist) at the apex of each tradition
  • Administrative and mercantile castes: scribes, officials and traders (e.g. Pradhan, Shrestha)
  • Artisan castes: carpenters, masons, painters, metal and clay workers (later grouped as Shilpakar)
  • Farmer caste: the large Jyapu / Maharjan cultivator population
  • Service and lowest-ranked castes: assigned menial and 'polluting' occupations, with strict commensal and marriage limits

The Manava Nyaya Shastra: Nepal's first written law code

Jayasthiti Malla is associated with the Manava Nyaya Shastra, also known as the Nyaya Vikasini, widely described as the first codified law of Nepal. It was compiled around 1380 AD (about 1436 Bikram Sambat), during or just before the period of his ascendancy, and provided a written reference for judges rather than reliance on scattered, competing customs. Tradition holds it was commissioned by the king and prepared by learned Brahmins and scribes; scholarly studies name the compiler Manikya and the scribe Luntabhadra Bajracharya.

The code was rooted in the classical Hindu Dharmashastra tradition, drawing especially on the Narada Smriti and on Manusmriti, adapted to Valley conditions. Surviving manuscripts are written in a mix of languages, chiefly Sanskrit with Newari (Nepal Bhasa) and some Maithili, in the old Bhujimol script. Copies survive in the National Archives in Kathmandu, the Asha Archives, and abroad at Cambridge University Library, which is why the text can be studied today.

In content the code is organised into around seventeen to eighteen title-groups of law (the count varies by manuscript) covering both civil and criminal matters. It treats debt and loans, deposits and partnerships, wages and service, sale and boundary disputes, marriage and inheritance, and crimes such as theft, robbery, assault and homicide. Consistent with its era, many punishments were graded by caste, so the same offence could draw different penalties depending on the rank of offender and victim.

  • Debt, loans, deposits, partnerships and other commercial dealings
  • Wages, hire and service contracts
  • Sale of property and boundary/land disputes
  • Marriage, family and inheritance
  • Criminal offences: theft, robbery, assault, rape and homicide, with caste-graded punishments

A new system of justice and punishment

Beyond listing offences, the reform is remembered for changing how justice was administered. Chronicles credit Jayasthiti Malla with replacing arbitrary beating and abuse of accused persons with a more regularised system of fines and defined penalties, giving punishment a written, predictable basis. Later legal commentators point to features associated with the code such as separate handling of civil and criminal cases and principles that resonate with plea and natural-justice ideas, though the medieval text should not be read as a modern statute.

The stated motive in the tradition was to curb the disorder and legal confusion caused by multiple, inconsistent customs across the Valley's towns. A famous episode preserved in the chronicles has thefts and desecration at the Pashupatinath temple spurring the king toward firmer law and a proper judicial framework. Whatever the precise trigger, the effect was to move the Valley from purely customary adjudication toward reference to a common written code.

By pairing a caste hierarchy with a graded penal code, the reform embedded social rank directly into law. This made the system predictable but also formalised inequality, since rights, obligations and punishments differed by caste. Historians such as Regmi therefore describe the reforms as both a landmark in Nepali legal history and a foundation of the rigid social order that persisted through later centuries.

Standardising weights, measures, land and the brick

Jayasthiti Malla is also credited with standardising the Valley's systems of measurement, an administrative reform that underpinned taxation, trade and construction. He is associated with fixing customary units still remembered in Nepal, including the mana and pathi for grain and volume, and weight units in the pau and dharni family. Uniform units made it easier to assess land revenue, settle market transactions, and reduce disputes over quantity.

Land itself was classified for revenue purposes, traditionally into grades according to productivity, so that tax could be assessed fairly on fields of differing yield. Chronicles associate his administration with officials tasked to measure land and buildings, and with tools such as the tunga measuring rod, easing the buying, selling and taxing of property. This measured, surveyed approach to land is a recurring theme in accounts of his reign.

The tradition further links him to standardising the size of the building brick, the basic unit of the Valley's celebrated brick-and-timber architecture. A regulated brick supported the uniform construction of the temples, courtyards and towns that define Newar heritage. As with the caste count, some specifics rest on later chronicle memory rather than firsthand documents, so the durable claim is the drive toward standardised units across grain, weight, land and building materials.

  • Volume/grain measures: mana and pathi
  • Weight measures: pau and dharni
  • Land graded by productivity for fair revenue assessment
  • Land and buildings measured by officials, using tools such as the tunga rod
  • Standardised the size of the building brick for uniform construction

How the reforms shaped Valley society

The combined effect of Jayasthiti Malla's reforms was to give the Kathmandu Valley a more ordered, standardised society. Occupations became hereditary and specialised, which anthropologists such as Robert Levy (in 'Mesocosm', his study of Bhaktapur) show helped organise the elaborate ritual, craft and civic life of Newar towns for centuries. The caste order structured festivals, temple service, guild-like trades and urban space itself.

The reforms also had a long and heavy social cost. By fixing rank, occupation and marriage into law, they entrenched hereditary inequality and the marginalisation of lower and 'untouchable' castes, patterns that endured long after the Malla period and that modern Nepal has legislated against. Caste-based discrimination and untouchability were outlawed by the state in the 20th century and criminalised under later law, but the social legacy of this medieval ordering is still visible.

For students and researchers, Jayasthiti Malla's reign marks a foundational moment: the codification of law, the systematisation of caste, and the standardisation of measurement in one connected programme. It is best understood alongside the wider Malla era and the story of Nepal's ethnic and caste groups, of which the Newars are a central part. See the related pages on the Malla period and on Nepal's people and ethnic groups for broader context.

Questions

Jayasthiti Malla's Caste Code & the Manava Nyaya Shastra — FAQ

Who divided the Newar caste system?+

Jayasthiti Malla, who ruled the Kathmandu Valley from 1382 to 1395 AD, is credited with systematising the Newar caste system. He did not invent caste in the Valley, which predated him, but he standardised it into a graded, state-administered hierarchy of hereditary occupations. Nepali tradition commonly describes this as a division into 64 castes.

What is the Manava Nyaya Shastra?+

The Manava Nyaya Shastra, also called the Nyaya Vikasini, is widely regarded as Nepal's first codified law. Compiled around 1380 AD (about 1436 BS) in connection with Jayasthiti Malla, it drew on the Hindu Dharmashastra tradition, especially the Narada Smriti, and covered debt, marriage, inheritance and crimes such as theft and homicide, with punishments often graded by caste.

How many castes did Jayasthiti Malla create?+

Nepali textbooks traditionally state that he organised Newar society into 64 castes based on occupation. Scholars treat this exact number cautiously, since chronicle lists vary and the system kept evolving after his reign. The durable point is that he imposed a comprehensive, occupation-linked caste hierarchy rather than a precise, fixed count.

What were Jayasthiti Malla's main reforms?+

His main reforms were three linked programmes: standardising the Newar caste system into an occupation-based hierarchy; commissioning the Manava Nyaya Shastra law code and a more regular system of fines and courts; and standardising weights, grain and volume measures (mana, pathi, pau, dharni), land grading and the building brick. Together they gave the Valley a uniform legal, social and commercial order.

When did Jayasthiti Malla rule Nepal?+

Jayasthiti Malla ruled the Kathmandu Valley in the late 14th century, conventionally dated 1382 to 1395 AD (roughly 1439 to 1452 Bikram Sambat). He unified the three Valley towns of Bhaktapur, Kathmandu and Patan under his authority after a period of instability and foreign raids.

What languages was the Manava Nyaya Shastra written in?+

Surviving manuscripts of the code are written mainly in Sanskrit, with portions in Newari (Nepal Bhasa) and some Maithili, using the old Bhujimol script. Copies are preserved in the National Archives in Kathmandu, the Asha Archives, and at Cambridge University Library.

Related topics

← All topics