 In the beginning of the 17th-century, Palembang became one of the centers of Islam in Indonesia.The sultanate was founded by Ki Gede ing Suro, a nobleman from Demak Sultanate, who takes refuge during the troubles following the death of Sultan Trenggana.On the north bank of the Musi River, he establish a kraton, the Kuto Gawang.