 Sunan Gunungjati had Hasanudin named king of Banten by the Sultan of Demak who, in turn, offered Hasanudin his sister's hand in marriage.Thus a new dynasty was born at the same time as a new kingdom was created.Banten was the capital of this kingdom, held as a province under Sultanate of Cirebon.