The goal of the campaign was to unite the Maghreb under one state. The campaign failed as the Marinids were defeated at Qairawan. The poem was a sort of consolation for the defeat, and it serves as a valuable historical document as it details the social and political situation at the time.[1]