The Grand Mosque (Ulu Camii) in Afyon was built by Sahipata Nusreddin Hasan during the reign of the Anatolian Seljuks in 1272-1277. Its architect was Emir Hac Bey. A notice indicates the mosque has a cooked (crooked? I tend to see it as box-like) plan, of which I do not know what it might mean. It has 40 wooden columns with stalactite and lozenge formed capitals. They formerly were brightly decorated with drawings in colour, but of those little if anything remains. Around the marble prayer niche some verses from the koran are written. The construction date is indicated there also. In 1341 a first restoration was executed by Muinuddin Emir Abdullah Bey, an inscription indicating this can be found on the east front door. The building was preserved in its original shape with a flat roof, however another roof was added during a more recent restoration. The minaret is in brick with lozenge glazed shapes for decoration, a rare survivor from Seljuk times.
In 2008 I took many pictures of a mosque of the same type. Though you will see similarities with the Afyon one, the other mosque is more complex and some pictures are better, so take a look at Eşrefoğlu Mosque in Beyşehir.
On 19 September 2023 it was one of five wooden mosques that were declared UNESCO World Heritage Site.