The Spanish authorities require you to apply and have a Spanish Residency Card if you are a NON-EU citizen studying in Spain for more than 6 months Spanish.