It was begun in the ninth century , with its massive bronze doors crafted in Constantinople and added in the 11th century , and the facade added in the 13th , when the remains of St. Andrew the Apostle were brought to its crypt from Constantinople .
It took 400 years to complete the construction .