Batavia is a city in and the county seat of Genesee County, New York, United States. It is located near the center of the county, surrounded by the Town of Batavia, which is a separate municipality. Batavia's population, as of the 2020 census, was 15,600.