The origins of the church are unknown. For many years, it had been identified with the medieval church of San Salvatore in Porta Aurea, where the current epigraph celebrating the victorious feat of the Pisans in the Balearic Islands in 1115 was located, who apparently returned to the city through this very gate facing the river. The present church dates back to the 16th century, when it was the seat of the congregation of blacksmiths and farriers. In 1640 it took the name Santa Maria dei Galletti after a chance discovery of a sacred image of the Virgin Mary in the nearby house of the Galletti family. The 18th-century façade opens into a single portal surmounted by a large window. On the tympanum, a plaque commemorates the Pisan enterprise in the Balearic Islands and the victorious entrance to Pisa through the Golden Gate. At the back, the bell tower with two bells, one of which dates back to 1314. The interior features a sumptuous wooden ceiling from 1642 by the carver Carlo Del Norcia, bearing the symbols of the Passion of Christ. The presbytery in polychrome marble preserves niches with angels, while the centre of the wall is occupied by a 14th-century Madonna and Child attributed to Francesco Neri da Volterra. The side chapels with stone altars and paintings from the 17th and 18th centuries are also interesting.
A group of lay people allows the opening of some hours in the afternoon
dedicated to Eucharistic adoration.