Thirty-one habitual coffee drinkers in Ireland gave up coffee for two weeks so scientists could watch what happened to their gut bacteria. Then they started again, half on caffeinated coffee and half on decaf, without knowing which.
The bacteria moved both times, and the caffeine turned out not to be the main driver.