Muslim forces crossed from North Africa in 711, and by the tenth century the caliphate of Cordoba had libraries, hospitals, translators and scholars of many faiths. Jewish scholars wrote in Arabic as well as Hebrew, and the famed Jewish philosopher Maimonides was born in Cordoba in the 1130s. Christians, known as Mozarabs, kept their churches and bishops, and many adopted Arabic language and customs. Under Islamic law, the Quran and the Prophet's teaching gave protection to the People of the Book, and the Prophet ﷺ warned that whoever kills a person under a covenant will not smell the fragrance of Paradise.
It is better to say that this was a time of 'coexistence' than of 'perfect harmony.' Jews and Christians paid a poll tax and did not have the same status as Muslims, and there were times of tension and violence. When the Almohad dynasty took power in the twelfth century, it pressed Jews and Christians to convert, and Maimonides' family left for North Africa. Christian kingdoms in the north were also at war with the Muslim states for centuries.
The story ended painfully. Granada fell in 1492. In that same year, Spain ordered the Jews to convert or leave, and in the early 1500s the Muslims who remained were forced to convert, and their descendants were expelled in the early 1600s. This history is why many Muslims, Jews and Christians still look back at al-Andalus with hope and with sorrow. The Quran's guidance remains: there is no compulsion in religion, and Allah does not forbid you to deal kindly and justly with those who did not fight you over religion.