In combination, these data suggest that UTI enhanced macrophage efferocytosis and promoted the resolution of pneumonia through the ERK5/Mer pathway. Here, MAPK7 is linked to bacterial urinary tract infection.