Troy is a city in Pike County, Alabama, United States. At the 2020 census the population was 17,727.[3] The city is the county seat of Pike County[4]. It is home to Troy University (formerly Troy State University).