 According to the instructions from the Ministry of Justice ( Dirección General de Registros y Notariado ) , Spanish Consulates abroad may carry out the preliminary paperwork for a same @-@ sex marriage . At least one of the marrying partners must be a Spanish citizen , residing in the Consular demarcation . However , the marriage itself can only take place at the Consulate if local laws recognize same @-@ sex marriages ( Spanish consulates in Boston , Brussels , The Hague , Amsterdam , Oslo , Toronto , Montreal , Ottawa , Cape Town , Pretoria , Stockholm , Washington , D.C. , Mexico City , Lisbon , Porto , Reykjavík , Buenos Aires , Rosario , Córdoba and Mendoza , as of August 2010 ) . In all other cases , the partners must marry in Spanish territory . Two non @-@ resident foreigners cannot marry in Spain , as at least one of the partners must be a Spanish resident , although they both may be non @-@ Spanish citizens . 
