The F Market & Wharves line is one of several light rail lines in San Francisco, California. Unlike most other lines in the system, the F line runs as a heritage streetcar service, almost exclusively using historic equipment from San Francisco's retired fleet and from cities around the world (although buses are added during peak commute hours). While the F line is operated by the San Francisco Municipal Railway (Muni), its operation is supported by Market Street Railway, a nonprofit organization of streetcar enthusiasts which raises funds and helps to restore vintage streetcars.
Introduced as the F Market in 1983, in the first San Francisco Historic Trolley Festival, the service originally operated between the Castro District and the Transbay Terminal, continuing to do so after being launched as a full-time, year-round service in 1995. In March 2000, it was extended at its eastern end to the Embarcadero and northwards along that street to Fisherman's Wharf, and a short section of the route between Market Street and the Transbay Terminal was discontinued.