 Thus, the office of Yang di-Pertuan Agong was created.Negeri Sembilan has been receiving immigrants from Sumatra for hundreds of years.Prior to the implementation of this unique form of monarchy, the area was ruled by the Sultan of Malacca.