By 1858 nearly 3,000 miles of track had been built in Spain, but the foreign companies who ran the system paid no attention to Spanish economic needs, so that the lines simply radiated out from Madrid or Barcelona instead of following traditional trade routes. Thus there was for a long time no cheap and reliable means of getting coal from the mines of Asturias in the north to the foundries of Vizcaya 200 miles to the east, which were obliged to rely on imports of Welsh coal instead.