The Convention of Gramido was an agreement signed on 29 June 1847, in Casa Branca on the town square of Gramido, in Valbom, Gondomar, Portugal, to end the civil war of the Septembrists against the Cartistas known as the Patuleia. The Convention was signed by the commanders of the Spanish and British military forces that had entered Portugal on behalf of the Quadruple Alliance, the representative of the Portuguese government in Lisbon, and the representatives of the Junta in Porto. It sealed the defeat of the Septembrists.