Demak's origins are uncertain although it was apparently founded in the last quarter of the 15th century by a Muslim, known as Raden Patah (from Arabic name: "Fatah", also called "Pate Rodin" in Portuguese records, or "Jin Bun" in Chinese record).
According to Tome Pires, Demak had more inhabitants than any port in Sunda or Java.