The Regreg War (often erroneously called the Paregreg) was a civil war that took place in 1404–1406 within the Javanese empire of Majapahit. The conflict was fought as a war of independence between the Kedhaton Kulon (Western court) led by Wikramawardhana against the breakaway Kedhaton Wetan (Eastern court) of Blambangan led by Bhre Wirabhumi. This war of rivalry and secession had caused calamity, crisis, court's preoccupation, the drain of financial resources, and exhaustion, which is thought to be one of the causes of Majapahit's decline in the following years.
Majapahit (Javanese: ꦩꦗꦥꦲꦶꦠ꧀, romanized: Måjåpahit; Javanese pronunciation:[mɔd͡ʒɔpaɪt] (eastern and central dialect) or [mad͡ʒapaɪt] (western dialect), Sanskrit: मजापहित, romanized: majāpahita), also known as Wilwatikta (Javanese: ꦮꦶꦭ꧀ꦮꦠꦶꦏ꧀ꦠ; Javanese pronunciation:[wɪlwatɪkta], Sanskrit: विल्वतिक्त, romanized: vilvatikta), was a JavaneseHindu-Buddhistthalassocratic empire in Southeast Asia based on the island of Java (in modern-day Indonesia). At its greatest extent, following significant military expansions, the territory of the empire and its tributary states covered almost the entire Nusantara archipelago, spanning both Asia and Oceania. After a civil war that weakened control over the vassal states, the empire slowly declined before collapsing in 1527 due to an invasion by the Sultanate of Demak. The fall of Majapahit saw the rise of Islamic kingdoms in Java.
Established by Raden Wijaya in 1292, Majapahit rose to power after the Mongol invasion of Java and reached its peak during the era of the queen Tribhuvana and her son Hayam Wuruk, whose reigns in the mid-14th century were marked by conquests that extended throughout Southeast Asia. This achievement is also credited to the famous prime minister Gajah Mada. According to the Nagarakṛtāgama written in 1365, Majapahit was an empire of 98 tributaries, stretching from Sumatra to New Guinea; including territories in present-day Indonesia, Singapore, Malaysia, Brunei, southern Thailand, Timor Leste, and southwestern Philippines (in particular the Sulu Archipelago), although the scope of Majapahit sphere of influence is still the subject of debate among historians. The nature of Majapahit's relations and influence upon its overseas vassals and also its status as an empire still provokes discussion.