The Hamdanids in northern Syria had allied…
977 CE
The Hamdanids in northern Syria had allied themselves with the Qarmatians to drive the Fatimids from Syria in 976.
The Fatimids return the following year with a greater force and rout the allies at the Battle of Ramleh, thus consolidating southern Syria under Fatimid rule.