The first text referring to the fact that the apostle James had been buried in Spain is the "Breviary of the Apostles." The text also refers to the "Arca Marmórica", one of the essential elements of the legend of Santiago, that is to say, the fact that his body had arrived in Galicia in a stone ark.
Throughout the High Middle Ages, there were many texts and legends dealing with the removal of the body of Santiago. Most refer to how his disciples recovered his body after his martyrdom in the Holy Land and transported him by boat to the lands of Hispania. The miraculous sea crossing - according to some versions the boat was propelled by an angel or by some other mysterious means and finally finished up in Galicia, in the port near Iria Flavia (Padron), at the meeting point of the rivers Ulla and Sar. From there, the disciples of the Saint would have continued their journey by land, in search of a suitable place to bury the Apostle.