William James Mudie Larnach CMG (27 January 1833 – 12 October 1898) was a New Zealand businessman and politician. He is known for his extravagant incomplete house near Dunedin called Larnach's castle by his opponents and now known as Larnach Castle. He is also remembered for his suicide within parliament buildings when faced with bankruptcy and consequent loss of his seat in parliament.