 In 1618 and 1619 both Sumedang and Ciamis were defeated by Cirebon.Both Priangan regencies fell under Mataram rule, and in 1628-29 Sultan Agung of Mataram launched the failed Siege of Batavia.The realm of the Sultanate of Cirebon at that time include Indramayu, Majalengka, Kuningan, modern Cirebon Regency and Municipality.