He lost his seat in the 1869 election on confederation but returned in 1874 and served as Solicitor-General in the government of Sir Frederick Carter before becoming Premier in 1878 when he succeeded Carter as leader of the Conservatives.