You can apply for a Spain tourist visa up to 6 months before your intended travel date. However, you should not apply earlier than 6 months in advance. It is recommended to apply at least 3 to 4 weeks before your travel date to allow enough time for processing. Applying early helps avoid delays, especially during peak travel seasons when processing times may be longer.