Troy is a city in Madison County, Illinois, United States. The population was 9,888 at the 2010 census.Troy is part of the St. Louis Metropolitan Statistical Area. Its namesake in Lincoln County, Missouri is also part of this MSA, making it one of the few pairs of like-named municipalities to be part of the same MSA.