The countries closest to Spain by train are France and Portugal. In 2026, the rail connection between Spain and France is world-class, with high-speed AVE and TGV trains running directly from Barcelona to Paris (approx. 6.5 hours), Lyon, and Marseille. A new high-speed link launched in 2025 also connects Barcelona to Toulouse in just over 3 hours. For travel to Portugal, you can take regional and "Intercity" trains from Madrid to Lisbon or from Vigo in northern Spain to Porto. While Spain also shares a land border with Andorra and the British Overseas Territory of Gibraltar, neither has a direct train station within their borders; for Gibraltar, travelers typically take a train to the Spanish border town of La Línea de la Concepción or Algeciras and walk across. By 2026, the Nightjet sleeper train network has also expanded, making it easier to reach deeper European destinations like Switzerland and Italy by starting in Spain and transferring through the French high-speed hubs.