 He was High Sheriff of Glamorgan in 1837, of Carmarthenshire in 1838 and of Breconshire in 1844.Gwyn successfully contested Penryn and Falmouth at the 1847 General Election and continued to represent the borough until 1857.He represented Brecon from 1866 until 1869 when he was unseated by petition.