 He studied law, was admitted to the bar, and commenced practice.In 1815, 1816, and from 1819 to 1827, Dennis served as a member of the Maryland House of Delegates, and was a member of the executive council of Maryland in 1829.He also served as an elector of the Maryland State Senate in 1831.