The fermentation lock or airlock is a device used in beer brewing and wine making that allows carbon dioxide released during fermentation to escape the fermenter, while not allowing air to enter the fermenter, thus avoiding oxidation.