A by-election was held for the New South Wales Legislative Assembly electorate of Mudgee on 6 January 1879 because of the resignation of Sir John Robertson who was then appointed to the Legislative Council,[1] to facilitate the coalition of his supporters and those of Sir Henry Parkes to form an effective government.[2]