Seremban grew in the 1870s as a tin-mining town, first known as Sungai Ujong, when Chinese miners worked the area and the British extended their influence over the small states of the region. The town became the capital of Negeri Sembilan, a federation of "nine states" whose Malay chiefs trace their roots to the Minangkabau of West Sumatra.
The state keeps the Minangkabau adat perpatih, a customary law in which land and family lines pass through the women. Its rulers carry the title Yang di-Pertuan Besar and are chosen from a royal house at Seri Menanti, where the old wooden palace still stands. Seremban was joined to KL by railway in the 1890s and is now part of the wider Klang Valley commuter belt.