An investment of €500,000 in real estate will gain family residency. The visa can be renewed every two years. After five years it is possible to gain permanent residency and citizenship after ten years. It is not necessary to live in Spain in order to retain and renew the residency visa permit.
This residency visa will allow you travel throughout the Schengen zone.