Passenger-carrying vehicle that runs on rails laid in city streets. Streetcars in the 1830s were pulled by horses. Electric motors later supplied the power, with electricity transmitted by a trolley from overhead electric lines. From the 1890s to the 1940s, streetcars were widely used in cities around the world; they were gradually replaced by the automobile, the bus, and the subway, and by the 1950s few remained. A variant, the cable car, invented in 1873 for use on San Francisco's steep hills, is drawn by a continuous cable set in a slot between the tracks.