A hat trick occurs when a player scores three goals in a single match.