qnli question: Which church has had a large influence over Galicia since the Middle Ages? sentence: Since the Middle Ages, the Galician Catholic Church has been organized into five ecclesiastical dioceses (Lugo, Ourense, Santiago de Compostela, Mondoñedo-Ferrol and Tui-Vigo).