San Pedro featured a network of streetcars between 1903 and 1958. The establishment of the Port of Los Angeles in the early 1900s spurred the development of the nearby city, and electric streetcars provided local transit services for workers and later military personnel. Pacific Electric was the primary operator in the city.