If you are a non-EU student or you don’t have a European social security number (Health Insurance Coverage) you are obliged to get one. The so-called “Seguridad Social” entitles you to get public healthcare in Spain and the EU. You can get this number at the Administración de la Seguridad Social (Av. Gran Via Carles III 124 8034 Barcelona).