sentences:  Giles was elected as a Democrat from Maryland's 4th congressional district to the United States House of Representatives of the 29th United States Congress, serving from March 4, 1845, to March 3, 1847.He declined to be a candidate for renomination.Giles received a recess appointment from President Franklin Pierce on July 18, 1853, to a seat on the United States District Court for the District of Maryland vacated by Judge John Glenn.