After the death of Constantine V in 775, Arab raids on the Byzantine Empire had resumed.
After a heavy defeat at Germanicopolis in 779/780, the Abbasids launch a series of major invasions under Harun al-Rashid, which lead to the conclusion of a truce in 783.