Marilla is a town in Erie County, New York, United States. The population was 5,709 at the 2000 census. The name of the town is derived from Marilla Rogers, an early school teacher. The Town of Marilla is on the county's eastern border and is east of Buffalo, New York.