The Jementah Civil War broke out in 1879 in Jementah in northern Johor when Tengku Alam Shah, the heir of Sultan Ali of the autonomous principality of Muar refused to surrender the principality to the central administration of Sultan Abu Bakar of Johor (then Maharaja in 1879).