Shaw was 25 years old, and a captain in the 18th Regiment (later The Royal Irish Regiment), during the New Zealand Wars on 24 January 1865 when the following deed led to the award of the Victoria Cross: