History of rail transport in Spain
The history of rail transport in Spain begins in the 19th century. In 1848, a railway line between Barcelona and Mataró was inaugurated, although a line in Cuba (then a Spanish overseas province) connecting Havana and Bejucal had already opened in 1837.
Source: Wikipedia — History of rail transport in Spain (CC BY-SA 4.0)