Here's the reaction:
CO2 (g) + H2O (l) ⇌ H2CO3 (aq)
Carbonic acid is a weak acid that forms in equilibrium with carbon dioxide and water. This is why carbonated beverages have a slightly acidic taste.