Complex sentence: When in A.H.201 (817 CE) al-Ma'mun named Imam Reza the Eighth descendent of Muhammad his heir, this was not accepted by people in Baghdad.
Split into simpler sentences: When in A.H.201 (817 CE) al-Ma'mun named Imam Reza the Eighth descendent of Muhammad his heir. This was not accepted by people in Baghdad.