Idris II, the second ruler of the Idrisid dynasty, was born in 791/177 AH, after the death of his father Idris I. His mother was Lalla Kanza bint Uqba al-Awrabi. Rashid, who had accompanied Idris I in his exile from Baghdad, served as regent until Idris II was old enough to succeed his father. He is the founder of Fes where he transferred the Idrisid capital from Volubilis. At the time of this death in 828/213 AH, he had dominion over territory stretching from what is now western Algeria to the Sous in southern Morocco.