Built during the reign of
Mesud II of the
Seljuks of Rum in 1290, the mosque is one of the oldest mosques in Turkey still standing. Its architect was Ebubekir Mehmet. It was commissioned by two
Ahi leaders named Hüsamettin and Hasaneddin. However, in 1330, it was repaired by another Ahi leader named Şerafettin after whom the mosque was named. After several minor repairs the mosque was restored by the
Directorate General of Foundations in 2010-2013 term. ==The building==