 In 1907 Gunn, standing as an Independent, won the seat of Carnarvon in the Queensland Legislative Assembly.He was opposed to the premier of the time, Robert Philp, Australian Pastoral Co., and "all that class".He stood as a Ministerialist at the 1909 state elections and remained with them until 1915 when he joined the Queensland Liberals, and finally he joined the National Party in 1918.