Marinid dynasty
By the time of his death in 1273, Muhammad had already secured the succession for his son, also named Muhammad, known by the epithet al-Faqih (the canon-lawyer). On his deathbed, Muhammad I advised his heir to seek protection from the Marinid dynasty against the Christian kingdoms. The son, now Muhammad II, was already 38 years old and experienced in the matters of state and war. He was able to continue Muhammad I's policies and would rule until his death in 1302.