During the Second World War, Gnat was part of the China Station until 1940, when she was relieved by . She then transferred to the Mediterranean Fleet's Inshore Squadron.
In World War II, Gnat served in the China Station until 1940, after which it was replaced by another ship. It then transferred to the Inshore Squadron of the Mediterranean Fleet.