 In 1892, he was elected to the provincial assembly in a by-election held after James Henry Metcalfe was elected to the House of Commons.He lost the seat by one vote in 1894 and won the by-election that followed in 1895.Harty served as Commissioner of Crown Lands from 1894 to 1896 and Commissioner of Public Works from 1896 to 1899.