Carbon dioxide turns limewater milky due to the formation of calcium carbonate.