The independent state of Nansarunai, established by the Ma'anyan Dayaks prior to the 12th century, flourished in southern Kalimantan. The kingdom suffered two major attacks from the Majapahit forces that caused the decline and fall of the kingdom by the year 1389; the attacks are known as "Nansarunai Usak Jawa" (meaning "the destruction of the Nansarunai by the Javanese") in the oral accounts of the Ma'anyan people. These attacks contributed to the migration of the Ma'anyans to the Central and South Borneo region.