You need at the notary appointment: The first step is to apply for a Spanish tax code (Número de Identificación de Extranjero). It is required for all legal transactions (purchase of real estate, registration for water, electricity, etc.). | passport or identity card | The sales document (Escritura) of the property | Payment receipt of property tax (IBI) | For flats: proof of payment of the community expenses issued by the President | Deed | The proof that the last bills for electricity, gas, water, etc. have been paid | Energy certificate