Complex sentence: Upon the death of Idris II in 828, the dynasty's territory was divided among his sons, and the eldest, Muhammad, received Fes.
Split into simpler sentences: Upon the death of Idris II in 828, the dynasty's territory was divided among his sons. The eldest, Muhammad, received Fes.