•Tgr5 expression in macrophages increases during bacterial infection. Here, GPBAR1 is linked to bacterial infectious disease.