Acetic acid (CH₃COOH) is the chemical compound that gives vinegar its distinctive properties.