This railroad was built in three stages from 1901 to 1908 and ran south out of Bakersfield then northwest into Taft (originally named "Siding Number 2"). It was originally built to haul oil supplies to and haul oil away from the oil-rich area in the southwestern region of the San Joaquin Valley. Interestingly enough, a portion of the line was built atop the existing right-of-way of a former narrow-guage line, the Buena Vista Reservoir Railroad.
In July, 1907, a 12-mile section of the tracks were washed out when the Buena Vista Reservoir overcame its levee. The Sunset Railroad was consequently rebuilt in just 34 days.
The spur between Pentland to Maricopa was abandoned in 1960; the rest of the line between Shale and San Emidio went dormant in 1976, and the track was finally removed in the first part of this century. The eastern-most section of track, out of Bakersfield, is still in use by the San Joaquin Valley Railroad (SJVR), a subsidiary of RailAmerica.
There is some confusion about who owned the line in its later years. Some sources say it was a Southern Pacific/Union Pacific line and in fact the line connects to the Union Pacific in Bakersfield. However, at an abandoned railroad crossing in Taft (see pictures), the electrical cabinet is marked with Santa Fe markings. Any further information about this line will be greatly appreciated.