 In 1842, Stiles was elected as a Democratic Representative from Georgia to the 28th United States Congress and served one term from March 4, 1843, until March 3, 1845.On April 19, 1845, Stiles was appointed by U.S. President James Polk as "chargé d'affaires" to the Austrian Empire, a position which he held until October 1849.He then returned to his beloved Etowah Cliffs in Cass County where he had a plantation, and lived with his wife Eliza Anne MacKay Stiles, and his children