The Parish of São Bartolomeu de Maragogipe was established in 1640, and a chapel soon followed. It soon proved inadequate, "[...] limited, and ruined, and unable to celebrate Divine Offices in it". Bartolomeu Gato de Castro began construction a church for the parish in the middle of the 17th century. Gato de Castro dedicated the church to Saint Bartholomew rather than
São Gonçalo, the patron saint of the settlement. Residents of the settlement financed the construction of the church; the parish also received 70,000 cruzados from the Portuguese crown. A conflict between residents of a
Tupinamba settlement to the south of Maragogipe occurred in 1655; the son of Gato de Castro was killed by an arrows to the chest. The date of its consecration is disputed. One hypothesis is 1680, the year cited in an 18th-century document by B. de Barros. This dated is corroborated by the design its rectangular pediment, two towers crowned with a pyramid, and three portals of the same style as portals of the now-demolished
Old Cathedral of Salvador (
Antiga Sé) of Salvador. These elements, along with the façade, are typical of Bahian churches of the last quarter of the seventeenth century. The original doors of the church are decorated in the style of an old palace gate. The same design is found at the
Cathedral of Salvador. The doors were removed from the church at Maragogipe and transported to the façade of the Ministry of National Education of Bahia. They bear the date of 1674. ==Location==