The Kammatthana meditation tradition originally grew out of the Dhammayut reform movement, founded by Mongkut in the 1820s as an attempt to raise the bar for what was perceived as the "lax" Buddhist practice of the regional Buddhist traditions at the time. Mongkut's reforms were originally focused on scriptural study of the earliest extant Buddhist texts, revival of the dhutanga ascetic practices, and close adherence to the Buddhist Monastic Code (Pali: vinaya). However, the Dhammayut began to have an increasing emphasis on meditation as the 19th century progressed. During this time, a newly ordained Mun Bhuridatto went to stay with Ajahn Sao Kantasīlo, who was then the abbot of a small meditation-oriented monastery on the outskirts of Ubon Ratchathani, a province in the predominantly Lao-speaking cultural region of Northeast Thailand known as Isan.

Ajahn Mun learned from Ajahn Sao in the late 19th century, where he studied amidst the growing meditation culture in Isan's Dhammayut monasteries as a result of Mongkut's reforms a half-century earlier. Wandering the rural frontier of Northeast Thailand with Ajahn Sao in rigorous ascetic practices (Pali: dhutanga; Thai: tudong). Ajahn Mun traveled abroad to neighboring regions for a time, hoping to reach levels of meditative adeptness known as the noble attainments (Pali: ariya-phala), which culminate in the experience of Nibbana — the final goal of a Theravada Buddhist practitioner.

After more than two decades of intense meditation and ascetic practice, Ajahn Mun would return to Ubon Ratchathani in 1915, claiming to have found the noble attainments. Word spread in the region, and monks came to study from Ajahn Mun, wishing to put his claims to the test; though the assertions that he had found the noble attainments were not universally received at the time—families were often divided over whether or not Ajahn Mun had attained sainthood.

During this period, Mongkut's successor Chulalongkorn (Rama V of Siam) had consolidated power in Bangkok, and implemented a wave of educational reforms which emphasized the role of the Thai clergy as educators. Dhammayut monks—which included Ajahn Mun and Ajahn Sao and their students—were drafted to teach a new monastic curriculum that had been infused with Western principles in an effort to prevent the encroachment of Christian missionaries, and to prevent Thailand from being colonized by a Western empire. Thailand would successfully prevent colonization; however, Ajahn Mun and Sao's students would continue to evade authorities' attempts to assign them to monasteries and prevent them from practicing in the forest.

Beginning in the 1950s though, the tradition would gain respect among the urbanities in Bangkok, and receive widespread acceptance among the Thai Sangha. Many of the Ajahns were nationally venerated by Thai Buddhists, who regarded them as arahants. Because of their reputations, the Ajahns have become the subject of a cultural fixation on sacralized objects believed among lay followers to offer supernatural protection. This cultural fixation was referred to by social anthropologist Stanley Jeyaraja Tambiah as a cult of amulets, which he described during a field study in the 1970s as "a traditional preoccupation now reaching the pitch of fetishistic obsession". During this time, the tradition found a significant following in the West; particularly among the students of Ajahn Chah Subhatto, a forest teacher who studied with a group of monks in the Mahanikai — the other of Thailand's two monastic orders alongside the Dhammayut — many of whom remained loyal to their Mahanikai pedigree in spite of their interest in Ajahn Mun's teachings. However, in the final decades of the 20th century the tradition experienced a crisis when the majority of Thailand's rainforests were clear cut. Because of this, the Forest Tradition in early 21st century Thailand has been characterized by a struggle to preserve the remaining forested lands in Thailand for Buddhist practice.

Third and Fourth Reigns (1824–1868)

19th Century regional Thai Buddhism Before authority was centralized in the 19th and early 20th centuries, the region known today as Thailand was a kingdom of semi-autonomous city states (Thai: mueang). These kingdoms were all ruled by a hereditary local governor, and while independent, paid tribute to Bangkok, the more powerful central city state in the region. (see History of Thailand) Each region had its own religious customs according to local tradition, and substantially different forms of Buddhism existed between mueangs.

Though all of these local flavors of regional Thai Buddhism evolved their own customary elements relating to local spirit lore, all were shaped by the infusion of Mahayana Buddhism and Indian Tantric traditions, which arrived in the area prior to the fourteenth century. These monks practiced (and some still do to this day) a group of tantric practices known as Khatha Akhom, or Wicha Akhom. Thanissaro writes that these monks would lead sedentary lives in village monasteries; take occupations as doctors and fortune tellers; and occasionally take leave on "a pilgrimage they called 'dhutanga' which bore little resemblance to the classic dhutanga practices." Additionally, these regional traditions differed in the degrees to which they followed the Buddhist monastic code (Pali: Vinaya). Later the regional traditions would be criticized by the central Bangkok ecclesia for not properly adhering to the Vinaya. Tiyavanich writes:

Early monkhood of Prince Mongkut

A 20-year-old Prince Mongkut took full ordination (ordination name Vajirayan, Pali: Vajirañāṇo) as a Theravada Buddhist monk (Pali: bhikkhu), following a longstanding Thai custom that young men should become monks for a time. The preceptor who conducted Mongkut's ordination was perhaps the most widely known monk in 19th-century Thai history — Mongkut's older half-brother Phra Toh, later known as Somdet Toh. The year of Mongkut's ordination, his father (Buddha Loetla Nabhalai – Rama II of Siam) died. Although Mongkut was senior to his half-sibling Prince Jessadabodindra (later, Nangklao, Rama III of Siam), the peers in his dynasty instead supported Jessadabodindra to succeed Rama II as the Thai monarch. Giving up aspirations to the throne, Mongkut devoted his life to religion.

In his travels around Siam as a monk, Mongkut quickly became dissatisfied with what he saw as discrepancies between the conduct of the monks and the Vinaya, the Buddhist monastic code. For this reason, Mongkut was concerned about the ability of the ordination lines to be able to trace back to Gautama Buddha, as well as the capacity of the Thai sangha to act as the field by which merit is made among lay people. Mongkut would subsequently seek out a tradition which met his standard of Buddhist practice.

Mongkut eventually found a higher caliber of monastic practice among the Mon people in the region, where he studied Vinaya and traditional ascetic practices or dhutanga. In particular, he met a monk named Buddhawangso, a monk who he admired for his discipline and praxis with respect to the Pāli Canon — the most authoritative Buddhist text in Theravada Buddhism, believed to contain the words of the Buddha and his disciples. Jessadabodindra complained about Mongkut's involvement with the Mons — considering it improper for a member of the royal family to associate with an ethnic minority — and built a monastery on the outskirts of Bangkok. In 1836, Mongkut became the first abbot of Wat Bowonniwet Vihara, which would become the administrative center of the Thammayut order until the present day.

The Dhammayut Reform Movement

After reordaining with this group in 1833, he began a reform movement which he named Dhammayut (meaning in accordance with the Dhamma, Thai Dhammayut), a name which he chose to contrast with the regional Buddhist traditions that drew their customs from values which emerged from their respective local cultures. In the founding of the Thammayut, Mongkut made an effort to remove what he understood as non-Buddhist, folk, and superstitious elements which over the years had become part of Thai Buddhism. Additionally, Dhammayut bhikkhus were expected to eat only one meal a day, and the meal was to be gathered during a traditional alms round and eaten together in the monks' single alms bowl; practices above and beyond usual monastic requirements which are usually reserved as optional dhutanga ascetic observances.

In addition to seeking out what Mongkut saw as a more valid ordination lineage, Mongkut sought to find the most reliable version of the Pali Canon still available. Thanissaro asserts that Mongkut did this out of an attempt to make accessible to the Thai sangha successive levels of enlightenment in Theravada Buddhism (known as the noble attainments) which culminate in the experience of Nirvana, after which one becomes an arahant. This motivation was a reaction to an idea which grew out of Sri Lanka, that because of the degeneracy of the human race, the noble attainments were lost to mankind after the first few generations immediately following the Buddha. On his reasons for asking for better versions of the Pali Canon, Mongkut wrote the following in a missive to the Sangha of Sri Lanka:

In the following years Mongkut was visited at Wat Bowonniwet by Western missionaries and sailors, and would learn Latin, English, and astronomy. He would have a close friendship with Vicar Pallegoix of the Roman Catholic Archdiocese of Bangkok, a friendship which would remain after Mongkut became king. Pallegoix visited Wat Bowonniwet regularly to preach Christian sermons. Though Mongkut admired the vicar's presentation of Christian moral ideals, he rejected Christian doctrine, saying: "What you teach people to do is admirable, but what you teach them to believe is foolish."

While abbot of Wat Bowonniwet Mongkut had other monks who were close to him reordain among this Mon lineage. Among these monks was the current Somdet Phra Wannarat "Thap", a grade Nine Pali scholar, and Dhutanga ascetic practicing monk. According to Taylor, Thap was praised as an exemplary Dhammayut monk, and practiced ascetic practices vigorously, as well as contemplations of the foul nature of the body by going to charnel grounds to see decaying corpses in person (a practice which was suggested in the Pali Canon, as an aid to spiritual progress).

Revival of Dhutanga During this time charnel grounds were still available for body contemplation. Taylor writes that "The destitute, unable to afford a proper cremation, simply left the dead to the elements and vultures (executed criminals were apparently forbidden a cremation by social custom and were similarly left to the elements), providing a classic environment for “insight” meditation."

Taylor notes that although they were "ascetic monks intent of maintaining correct practices in line with scriptural interpretations", the monks "were not necessarily "forest dwellers"; rather, they were urban-dwelling meditators and Pali scholars . . .", and being away from one's post for too long was frowned upon

Fifth Reign (1868–1910)

Establishment of the Thammayut Order

According to the Dhammayut monk-prince Vajirañāṇa (Thai: Wachirayaan)'s autobiography, dissention in the Dhammayut caused the movement to split into four competing factions (temporarily, albeit for several decades), in part because Thap had irreconcilable differences with some of the more "worldly" monks affiliated with Wat Bowonniwet. In the mid-nineteenth century these branches began to diverge from one another — each developed their own styles for chanting, interpretations and translations of Pali texts, and differed on issues related to the monastic code. During this time, Mongkut died, and Prince Vajirañāṇa's elder half-brother Chulalongkorn (Rama V of Siam) succeeded Mongkut to the throne.