We conclude that dietary manipulation of the gut microbiome protects against AKI and subsequent CKD, mediated by HDAC inhibition and activation of GPR41 and GPR109A by SCFAs. Here, HCAR2 is linked to chronic kidney disease.