Demak Grand Mosque
Demak’s origins are uncertain although it was apparently founded in the last quarter of the fifteenth century by a foreign Muslim, probably a Chinese who was perhaps named Cek Ko-po. It is thought that perhaps it was his son to whom the Portuguese gave the name 'Rodim', which most likely meaning 'Badruddin' or 'Kamaruddin', and he is thought to have died c. 1504. Rodim’s son, or possibly his brother, was the founder of the Demak’s brief domination in Java. Known as Trenggana, later Javanese traditions say he gave himself the title Sultan. It appears Trenggana had two reigns—c 1505–1518 and c 1521–1546—between which his brother in law, King Yunnus of Jepara filled in. One of Wali Songo, Sunan Kalijaga was the teacher of Raden Patah and had great influence on the philosophy of the Kingdom. Raden Patah was a Chinese descendant - his Chinese name was Jin Bun ('strong man'), Babad Tanah Jawa(or the Javanese Chronicle) recorded him as Jimbun.
Trenggana spread Demak’s influence east and west and c 1527, during his second regin, he conquered the last Javanese Hindu-Buddhist state, Majapahit of East Java. Majapahit had been in decline since the later fifteenth century and was in an advanced state of collapse at the time of the Demak’s conquest. Majapahit's heirlooms were brought to Demak and adopted as Demak's royal icons. Demak was able to subdue other major ports and its reach extended into some inland areas of East Java that are not thought to have been Islamised at the time. Although evidence is limited, it is known that Demak's conquests covered much of Java: Tuban, an old Majapahit port mentioned in Chinese sources from the eleventh century, was conquered c. 1527;
Raden Patah was succeeded by Pati Unus (1518 - 1521), known best for his two attempts in 1511 and 1521 to seize the port of Malacca from the control of Portuguese. This campaign attempt ended with a loss of the King's life.
The King's brother-in-law, Trenggana (1522 - 1548), crowned by Sunan Gunung Jati (one of Wali Songo), became the Third and the greatest King of Demak. He conquered the Hindu based ressistance in Central Java, Banten, Sunda Kelapa (which will become Jakarta) in the future, and ended his campaign as he was killed in Panarukan, [East Java] in 1548.