Question: when was the cathedral of santiago de compostela built
Answer: Construction of the present cathedral began in 1075 under the reign of Alfonso VI of Castile ( 1040 -- 1109 ) and the patronage of bishop Diego Peláez .