By train

AVE

Madrid-Lérida-Madrid

Barcelona-Lérida-Barcelona

Nearby train station:

In Spain: Lérida (170 km) 

In France: Montrejeau (60 km)