Excerpted from Our Lady of Montserrat website information:
According to Catholic tradition, the statue of the Black Virgin of Montserrat was carved by St. Luke around 50 AD and brought to Spain. It was later hidden from the Moors in a cave (Santa Cova, the Holy Grotto), where it was rediscovered in 880 AD.
According to the legend of the discovery, which was first recorded in the 13th century, the statue was discovered by shepherds. They saw a bright light and heard heavenly music that eventually led them to the grotto and the statue.
The Bishop of Manresa, present at the discovery, suggested that it be moved to Manresa, but the small statue was discovered to be so heavy it could not be lifted. Thus the Virgin had indicated her will to stay on Montserrat to be venerated there.
By the 9th century, there were four chapels on Montserrat, of which only one remains—St. Aciscolo’s, which is in the monastery’s garden. In the 11th century, the Abbot-Bishop Oliba founded a monastery on the mountain of Montserrat, next to one of the chapels. Many miracles were reported through the intercession of the Virgin Mary at Montserrat.
According to historians, it was then, in the 12th century, that the statue of the Madonna and Child was made. The Madonna statue soon earned widespread fame as numerous miracles were associated with the intercession of the Black Virgin of Montserrat.
In the late 18th century, almost the entire sanctuary was destroyed during the Napoleonic invasion. But due to the widespread devotion to the shrine, it was soon restored.
In 1881, Montserrat’s Black Madonna was crowned in accordance with Canon Law and proclaimed patron saint of Catalonia by Pope Leo XIII.
According to tradition, the miraculous image was first known as La Jerosolimitana (the native of Jerusalem), since it is thought to have been carved there in the early days of the Church. The statue was eventually given to St. Etereo, Bishop of Barcelona, who brought it to Spain.
In the seventh century, when Saracen infidels invaded Spain, the Christians of Barcelona heroically defended it for three years until defeat appeared imminent. Knowing that they could hold out no longer, they decided to take their treasured image of Our Lady to a secret, safe place. Quietly, with the knowledge of the Bishop and the Governor of the city, a group brought the statue to Montserrat, placing it in a small cave, April 22, 718. A complete account of the origin of the miraculous image, the cause of its removal and the place of its hidden security were recorded and in the archives of Barcelona.