The Prayer Hall was enlarged by Abderraman II (822) because of the increase in the Muslim population.