Legionella pneumophila (L. pneumophila) is a prevalent pathogenic bacterium responsible for significant global health concerns. Nonetheless, the precise pathogenic mechanisms of L. pneumophila have still remained elusive. Autophagy, a direct cellular response to L. pneumophila infection and other pathogens, involves the recognition and degradation of these invaders in lysosomes. Histone deacetylase 6 (HDAC6), a distinctive member of the histone deacetylase family, plays a multifaceted role in autophagy regulation. This study aimed to investigate the role of HDAC6 in macrophage autophagy via the autophagolysosomal pathway, leading to alleviate L. pneumophila-induced pneumonia. The results revealed a substantial upregulation of HDAC6 expression level in murine lung tissues infected by L. pneumophila. Notably, mice lacking HDAC6 exhibited a protective response against L. pneumophila-induced pulmonary tissue inflammation, which was characterized by the reduced bacterial load and diminished release of pro-inflammatory cytokines. Transcriptomic analysis has shed light on the regulatory role of HDAC6 in L. pneumophila infection in mice, particularly through the autophagy pathway of macrophages. Validation using L. pneumophila-induced macrophages from mice with HDAC6 gene knockout demonstrated a decrease in cellular bacterial load, activation of the autophagolysosomal pathway, and enhancement of cellular autophagic flux. In summary, the findings indicated that HDAC6 knockout could lead to the upregulation of p-ULK1 expression level, promoting the autophagy-lysosomal pathway, increasing autophagic flux, and ultimately strengthening the bactericidal capacity of macrophages. This contributes to the alleviation of L. pneumophila-induced pneumonia.