Acidic drinks like coffee soften the enamel and make them susceptible to damage, so if you brush right after, you risk damaging the natural enamel covering your teeth. Instead, wait for half an hour to give time for the enamel to harden, and simply rinse with water in the meantime.