William Swainson (25 April 1809 – 1 December 1884) became the second, and last, Attorney-General of the Crown colony of New Zealand and instrumental in setting up the legal system of New Zealand. He was the first Speaker of the New Zealand Legislative Council.