In 1850, the Fleetwood, Preston and West Riding Junction Railway (FP&WRR) built the 862 yards Miley Tunnel to connect two existing lines, the Preston and Longridge Railway at Deepdale, and the Preston and Wyre Joint Railway (P&WR) at Maudland.