Built in the 9th century, it is thought to be the earliest Islamic building in the country.[1] Carbon dating conducted in early 2017, together with historical sources, suggest it could have been built as early as the year 794.[2] It was built on the remains of a Buddhist monastery.[3]