Adapting to Survive: How Byzantium Survived the Arab Invasions
The Byzantine army was restricted to a largely defensive role in the 7th to mid-9th centuries. They created a new organization system for the military and developed the theme-system to counter the more powerful Caliphate.
Source: ancient-origins.net