He represented the Lyttelton electorate in the House of Representatives from 1875 to 1879, when he was defeated.
Note that some sources, for example Wilson (1985) and Scholefield (1950), list him under the surname Aynsley.