Battle of er-Rias
{{Rough translation|fr|date=December 2021}}
{{MOS|date=December 2021}}
{{Infobox military conflict
| conflict = Battle of er Rias
| place = er-Rias, Mermadjenna
| partof = Siege of Béjaïa (1326-1329)
| date = 1329
| commander1 = 22px Abu Yahya Abu Bakr II
| units1 = Unknown
| units2 = Unknown
| commander2 = 22px Yahya Ibn Moussa
22px Mohamed Ibn Abu Amran
Omar Ibn Hamza
| combatant1 = 22px Hafsid Dynasty
| combatant2 = 22px Kingdom of Tlemcen
| result = Zayyanid Victory
}}
The Battle of er-Rias took place in 1329, in er-Rias near a town named Mermadjenna in the land of the Hawwars.{{Cite book|last=Hoefer|url=http://dx.doi.org/10.5962/bhl.title.147878|title=Histoire de la zoologie : depuis les temps les plus reculés jusqu'a nos jours |trans-title=History of Zoology: From the Most Distant Times to Our Days| date=1873|publisher=Librairie Hachette|location=Paris|doi=10.5962/bhl.title.147878}} It was fought between the troops of the Hafsid caliph, Abu Yahya Abu Bakr, and the army of the Zayanid sultan, Abu Tashfîn, commanded by Yahya Ibn Moussa and Omar Ibn Hamza (leader of the nomadic tribes of Ifriqiya) as well as the Hafsid prince Mohamed Ibn Abu Umran, who had been the governor of Tripoli. The prince was declared caliph of the Hafsids and the army marched east.
Battle
After having had time to prepare his soldiers, Abu Yahya Abu Bakr set out to intercept Abu Tashfîn's army. The two armies faced each other in er-Rias in the land of the Hawwars. Abu Tashfîn's army feinted a retreat to lure the Hafsid army into mountainous terrain, where they could take advantage of their position.{{Cite journal|last=Hopkins|first=J. F. P.|date=June 1959|title=Ibn Khaldūn: Histoire des Berbères et des dynasties musulmanes de l'Afrique septentrionale. Traduite de l'arabe par le Baron de Slane. Nouvelle édition publiée sous la direction de Paul Casanova. Tome quatrième … publié par Henri Pérès. [iii], 628 pp. Paris: Paul Geuthner, 1956.|url=http://dx.doi.org/10.1017/s0041977x00069184|journal=Bulletin of the School of Oriental and African Studies|volume=22|issue=2|pages=403|doi=10.1017/s0041977x00069184|issn=0041-977X}} Arab contingents of the Hafsid army joined the Ziyanids, contributing to their victory.
Consequences
The Hafsid sultan was wounded during the battle, and the women of his family and his two sons, Ahmed and Omar, fell into the hands of the Ziyanids and were sent to Tlemcen. Abu Yahya took refuge in Constantine,{{Cite book|url=https://www.worldcat.org/oclc/276451761|title=Ibn Khaldun : the Mediterranean in the 14th century : rise and fall of Empires : exhibition in the Real Alcázar of Seville, May-September 2006|date=2006|publisher=Fundación El Legado Andalusí|others=Ana Serrano, María Jesús. Viguera, Jeronimo Páez López, José María. Cabeza Méndez, Legado Andalusí., Fundación José Manuel Lara|isbn=84-96556-33-6|location=Seville|oclc=276451761}} or Annaba. Following this victory, the Ziyands marched on Tunis and occupied it.