With his military ancestry and his Protestant loyalty to the Crown and Canada, William joined a regiment of volunteers mustered in 1837 in response to the Upper and Lower Canada Rebellions. William rose through the ranks of the militia to become captain of the Fourth Battalion of the Richmond Volunteer Military Company in July 1858. He did not see active service during the Rebellions or against the Fenian raiders (1866–1871).