Maryland is a town in Otsego County, New York, United States. The population was 1,897 at the 2010 census. It was named for the U.S. state of the same name. The Town of Maryland is on the county's south border. It is northeast of the City of Oneonta.