The Electoral district of Gympie in the state legislature was created in 1873 and includes Tin Can Bay, Rainbow Beach, Cooran, Pomona and parts of the Mary Valley. In 1893, Andrew Fisher was elected to the Legislative Assembly of Queensland as Labor member for Gympie and went on to become the fifth Prime Minister of Australia. Gympie's seat was eliminated in 1950 but restored in 1960. Since 1960, it has been considered a safe State Liberal-National seat having been won by the Country or National Party every election except for a brief period in the early 2000s. (It was held from 2002 to 2006 by Elisa Roberts, first as a member of the One Nation party and then as an independent, before returning to the National Party with the election of David Gibson.)