Nature Materials, Published online: 31 July 2026; doi:10.1038/s41563-026-02690-8A gut microbiota–bile acid pathway is identified that controls the liver clearance of nanomedicines, thereby improving drug delivery to tumours and cancer treatment responses.