Vinegar is a sour liquid produced by the fermentation of ethanol by acetic acid bacteria. It is commonly used as a condiment, preservative, and ingredient in cooking for its tangy flavor and acidity.