The mosque was eventually overshadowed and eclipsed by the Mosque of the Andalusians, founded nearby in 859-860, which quickly grew larger than the relatively primitive early Idrisid mosque. In 933, on the order of Hamid ibn Hamdan al-Hamdani the governor of Fes on behalf of the Fatimids, the khutba (Friday sermon) was transferred from the Mosque of the Sheikhs to the Andalusian Mosque, thus denoting the later as the main mosque of the district.[4] (At the same time, on the opposite shore of the river, the khutba was transferred from the Mosque of the Sharifs, the later Zawiya of Idris II, to the Qarawiyyin Mosque.[4])