The monastery of San Martiño Pinario (San Martín Pinario in Castilian) is a Benedictine monastery in the city of Santiago de Compostela, Galicia, Spain. It is the second largest monastery in Spain after San Lorenzo de El Escorial.
Little remains of the original medieval buildings, as the monastery has been largely rebuilt since the sixteenth century. The monastery was closed in the nineteenth century in the Ecclesiastical Confiscations of Mendizábal. The buildings currently house a seminary.
It originated in a chapel dedicated to Santa Maria called the Corticela which was demolished in the late ninth century, except the chapel, which today is part of the Cathedral of Santiago, when King Afonso III the Great and the Sisnando bishop cathedral began the new fabric. Thus, around the year 899, was built this monastery where Benedictine monks moved the old chapel. This monastery was later replaced by another monastery whose church was consecrated in 1102 by Bishop Diego Gelmírez, but not much remains of that era.
Throughout the Middle Ages the monastery grew so that by the end of the fifteenth century monastery became the richest and most powerful of Galicia. This led to it was almost completely rebuilt from the sixteenth century. From that century was the most powerful monastery under his authority Galicia taking most Galician monasteries.
The current church began to be erected soon after the appointment of Juan de Sanclemente Torquemada as Archbishop of Santiago in 1587. The project was commissioned to Mateo López, the most outstanding monastic architect of the city. To the death of López in 1606 assumed the direction of the work Benito González de Araujo.
The facade of the church, oriented to the west and open to the square of San Martín, presents a cover with structure of great altarpiece of stone divided in three bodies and three streets separated by fluted columns and is dedicated to the exaltation of the Virgin Mary and of The Benedictine order.
The fronton finish has a relief of Saint Martin on horseback distributing his coat with a poor, patron of the convent.