Our results suggest that UTI enhances macrophage endocytosis through the ERK5/Mer signaling pathway, thereby accelerating the resolution of pneumonia. Here, MAPK7 is linked to susceptibility to pneumonia measurement.