HMS H5 was a British H-class submarine of the Royal Navy that served in the First World War. The boat, which was launched in June 1915, was lost after being rammed by a British merchant ship off Caernarfon Bay in March 1916. It had been mistaken as a German U-boat and sank with the loss of all hands.