The themes or themata (Greek: θέματα; singular θέμα, thema) were the main aministrative divisions of the middle Byzantine Empire. They were established in the 7th century during the Muslim conquests and replaced the earlier provincial system established by emperors Diocletian and Constantine the Great.