Understanding the distribution patterns of antibiotics at the site of infection is paramount to selecting adequate drug regimens and developing new antibiotics. Tuberculosis (TB) lung lesions are made of various immune cell types, some of which harbor persistent forms of the pathogen, Mycobacterium tuberculosis. By combining high resolution MALDI MSI with histology staining and quantitative image analysis in rabbits with active TB, we have mapped the distribution of a fluoroquinolone at high resolution, and identified the immune-pathological factors driving its heterogeneous penetration within TB lesions, in relation to where bacteria reside. We find that macrophage content, distance from lesion border and extent of necrosis drive the uneven fluoroquinolone penetration. Preferential uptake in macrophages and foamy macrophages, where persistent bacilli reside, compared to other immune cells present in TB granulomas, was recapitulated in vitro using primary human cells. A nonlinear modeling approach was developed to help predict the observed drug behavior in TB lesions. This work constitutes a methodological advance for the co-localization of drugs and infectious agents at high spatial resolution in diseased tissues, which can be applied to other diseases with complex immunopathology.