Transfer of what is now Ontario County to New York formally took effect in 1789, when native title was extinguished and the county was formally established to govern the lands of the Phelps and Gorham Purchase the year prior. The territory first organized as Ontario County was much larger than at present and ran south from the shore of Lake Ontario. As the area was settled, new counties were organized. The following counties were rapidly organized from this territory in the first decades after the war: Allegany, Cattaraugus, Chautauqua, Erie, Genesee, Livingston, Monroe, Niagara, Orleans, Steuben, Wyoming, and Yates counties, and parts of Schuyler and Wayne counties.