Even if you own a property in Spain, you're still entitled to stay for only 90 days in a 180-day period without applying for a residence permit or a visa. You can still buy or rent your property as you wish, but you must be careful not to overstay the 90/180-day rule.