In the 5th century, Banten was part of the Kingdom of Tarumanagara. After Srivijaya attacked Tarumanagara, it became weaker. Then, the Kingdom of Sunda became more powerful in West Java. In the early 16th century, the port of Bantam (Banten) was an important port in the Kingdom of Sunda. In 1527, Javanese Muslims captured the port of Banten. Their leader was Sunan Gunungjati. They started the Sultanate of Banten.