In this study, we found that miR-20a plays a novel role in inhibiting autophagy and promoting mycobacterial latent infection in macrophages by targeting ATG7 and ATG16L1, which may provide a better understanding of M. tuberculosis latent infection. This evidence concerns the gene ATG16L1 and disease arising from reactivation of latent virus.