40th Street Station is a underground subway stop on SEPTA's Market-Frankford Line. The station is located below the intersection of Fourth & Market Streets in West Philadelphia. The station lies at the border of Spruce Hill & Powelton Village of University City, and it also connects to the campus of the University of Pennsylvania, just three blocks south of the station. 40th Street Station is the first station on the Market-Frankford Line to operate underground after 46th Street Station, and will continue to operate until it reaches 2nd Street Station. 40th Street Station was built in 1956 by the Philadelphia Transit Company. SEPTA's Subway-Surface lines connects to the station by diversion routing when the tunnel at 40th Street Station is closed during late-night hours, so passengers can continue to travel onto Center City Philadelphia. SEPTA buses that connects from 40th Street is the LUCY Gold & Green Loops and Routes 30 & 40.