American citizens wanting to study, reside, or work in Spain must obtain the appropriate visa from the Spanish Embassy or Consulate in their state/country of last residence. After the visa has been issued, foreigners have three months to apply for the corresponding permit with the Spanish authorities in Spain.