In 1876, seven years after the transcontinental railroad was finished, the rail line was laid down Soledad Canyon, linking LA to the north, after a 6940 feet tunnel through San Fernando pass (still used by Metrolink) and the Tehachapi Loop, where trains circle on grades over top of themselves to gain altitude.