Troy is a city in and the county seat of Pike County, Alabama, established in 1838 and formally incorporated on February 4, 1843.