The North Pacific Coast Railroad was a common carrier narrow-gaugesteam railroad begun in 1874 and sold in 1902 to new owners who renamed it the North Shore Railroad and which rebuilt the southern section into a standard-gaugeelectric railway. The NPC operated in the northern California counties of Marin and Sonoma that carried redwood lumber, local dairy and agricultural products, express and passengers. The NPC operated almost of track that extended from a pier at Sausalito and operated northwest to Duncans Mills and Cazadero. The NPC became the North Shore Railroad on March 7, 1902. In 1907 the North Shore Railroad became part of the Northwestern Pacific Railroad. Southern portions of the line were standard gauged and electrified by the North Shore for suburban passenger service, though tracks north of Point Reyes Station remained narrow gauge until abandonment in the late 1930s. All of the NPC trackage has been abandoned either by the NPC or the NWP. Some of the original right of way can be seen at the Samuel P. Taylor State Park near Fairfax, along the shore of Tomales Bay and Keyes Estuary and passenger depots remain in San Anselmo, Duncans Mills and Point Reyes Station. One NPC steam locomotive, No.12 the "Sonoma," remains as a restored static exhibit in its circa 1870s appearance at the California State Railroad Museum in Sacramento, while Duncans Mills hosts some decaying cars that are not being restored. A flatcar, North Shore 1725, has been restored as a picnic car and operates at the Society for the Preservation of Carter Railroad Resources' Railroad Museum at Ardenwood in Fremont.
The NSR was operated by John Martin and Eugene de Sabla Jr., pioneers in the electric railroad business. The southern of line were modernized to allow operation of standard-gauge electric passenger cars in addition to narrow-gauge steam-powered freight trains. Electric cars sometimes shared dual-gauge tracks with the steam trains, while at other locations a separate track for the electric cars was constructed parallel to the narrow-gauge route. The line was ultimately double tracked from Sausalito to San Anselmo except for the tunnel at Alto. A power house was built at Alto and power was also purchased at San Rafael. Direct current electrical power was transmitted to the trains at 600 volts by a third rail Service started to Mill Valley on August 20, 1903, and to San Rafael on October 17, 1903. It was the first United States steam railroad electrified for operational efficiency rather than for smoke abatement. The railroad established practices later used in Grand Central Terminal and the interborough subways of New York City. The electric lines were expanded after 1907 as part of the Northwestern Pacific Railroad. Interurban services ceased on February 28, 1941.