The Ulu Camii or Great Mosque is from 1197, the minaret is from 1213 and seems to have had its axis adjusted when it started to topple, it changes direction halfway up.
The mosque is of an old but not very interesting type: just a large room with row upon row of pillars to support a flat roof. This is the corridor in front, at the right the racks where one places one's shoes.