Streetcars in Washington, D.C. transported people across the city and region from 1862 until 1962. The first streetcars in Washington, D.C., were drawn by horses and carried people short distances on flat terrain; but the introduction of cleaner and faster electric streetcars, capable of climbing steeper inclines, opened up the hilly suburbs north of the old city and in Anacostia. Several of the district's streetcar lines were extended into Maryland, and two Virginia lines crossed into the district.