The railway line Marchena – Valchillón, whose construction was finished by Compañía de Ferrocarriles Andaluza (Andalusian Railway Company) in October 1885. It used to have a total distance of 91.38 km (56.14 miles) and it was originally planned to connect Marchena with Montilla, a city where this line connected with another railway line between Córdoba and Málaga.
Later on, this initial route was modified: an alternative to the stretch between Écija – Montilla was introduced, becoming thus a stretch connecting Écija and Valchillón, town where this line connects with another one which arrives at Córdoba. Thanks to this railway line, the Compañía de Ferrocarriles Andaluces presented an alternative itinerary to the one between Córdoba and Sevilla, which was managed by the railway company “M.Z.A.” (Madrid, Zaragoza and Alicante). Afterwards, due to its low use, it was dismantled by RENFE in 1971.
The country areas that the mentioned railway line goes through within the municipality of Écija were sold to RENFE by the City Hall in 1986.