The armies met south of Tunis in late 755, but before battle was enjoined, an agreement was reached to partition Ifriqiya between the Fihrids. Amran was to be assigned the government of Tunis and environs, the young Habib the government of southerly Gafsa and Nefzoua, leaving Ilyas with Kairouan and the remainder of Ifriqiya. The settlement made, Habib proceeded to Kairouan, while Ilyas accompanied Amran back to Tunis.