ObjectiveWe present 16s rRNA gene sequencing (V1-V2 region) and sample data from a pilot observational cohort study to describe the gut microbiota dynamics of subjects with latent tuberculosis infection (LTBI) treated with daily 600 mg rifampicin for four months (4R) or a weekly dose of 900 mg combination of rifapentine and isoniazid for three months (3HP). Our objectives were to (1) document changes to the gut microbiota immediately following exposure to the rifamycins and (2) document recovery to baseline two months after treatment completion.Data descriptionWe enrolled six subjects with subjects with LTBI and prospectively followed them for 5–6 months. Each subject provided stool samples before, during, and two months after treatment. Six healthy controls were sampled in parallel with the patients with LTBIs. We report amplicon sequence variants (ASVs) and taxonomic assignments for 60 stool samples. Additionally, we provide access to the raw amplicon sequences, and subject responses to questionnaires about their diet, medication, and lifestyle changes over the study follow-up period. Furthermore, we provide the concentration of the parent and partially active rifamycin metabolite concentrations measured validated LC-MS-MS assays of phosphate buffer washes of the stool samples collected from the LTBI participants. This comprehensive dataset is a valuable resource for future systematic reviews and meta-analyses of the impact of LTBI therapy on the gut microbiota.