The first underground line of the New York City Subway opened on October 27, 1904, almost 35 years after the opening of the first elevated line in New York City, which became the IRT Ninth Avenue Line. By the time the first subway opened, the lines had been consolidated into two privately owned systems, the Brooklyn Rapid Transit Company (BRT, later Brooklyn–Manhattan Transit Corporation, BMT) and the Interborough Rapid Transit Company (IRT). The city was closely involved: all lines built for the IRT and most other lines built or improved for the BRT after 1913 were built by the city and leased to the companies. The first line of the city-owned and operated Independent Subway System (IND) opened in 1932; this system was intended to compete with the private systems and allow some of the elevated railways to be torn down, but kept within the core of the City due to the low amount of startup capital provided to the municipal Board of Transportation, the later MTA, by the state. This required it to be run "at cost", necessitating fares up to double the five-cent fare popular at the time.
In 1940, the two private systems were bought by the city and some elevated lines closed immediately while others closed soon after. Integration was slow, but several connections were built between the IND and BMT, and now operate as one division called the B Division. Since the IRT tunnel segments are too small and stations too narrow to accommodate B Division cars, and contain curves too sharp for B Division cars, the IRT remains its own division, the A Division.
The New York City Transit Authority (NYCTA), a public authority presided by New York City, was created in 1953 to take over subway, bus, and streetcar operations from the city, and placed under control of the state-level Metropolitan Transportation Authority (MTA) in 1968.