This is the Keraton Kanoman, a once proud seat of kings that would ride on on elephants for their official duties, but now a lesser known tourist attraction surrounded by a market and a few other places of lesser interest. There are several palaces in the area, but this one is easily to most difficult to access by car so is ignored by most. Seems that was a deliberate act by the Dutch in an attempt to reduce the Sultan's power and influence.
The majority of the structures were built in 1678 by the Sultan of the time but the oldest house was erected in 1430 . Oddly, this seat of Islamic learning also has a church, the guide claiming the bell was donated by none other than Raffles. They say it still chimes midnight every night without fail.