Why was the location of Córdoba important during medieval times?

It was the main pilgrimage city for Muslims.
It was the governmental center of the Abbasid empire.
It was an easy way to access nearby Indian and Chinese markets.
It was a connection between Europe and African trade routes.