Tuberculosis (TB) control is complicated by the emergence of drug resistance. Promising strategies to prevent drug resistance are the targeting of nonreplicating, drug-tolerant bacterial populations and targeting of the host, but inhibitors and targets for either are still rare. In a cell-based screen of ATP-competitive inhibitors, we identified compounds with in vitro activity against replicating Mycobacterium tuberculosis (Mtb), and an anilinoquinazoline (AQA) that also had potent activity against nonreplicating and persistent Mtb. AQA was originally developed to inhibit human transforming growth factor receptor 1 (TGFBR1), a host kinase that is predicted to have host-adverse effects during Mtb infection. The structure-activity relationship of this dually active compound identified the pyridyl-6-methyl group as being required for potent Mtb inhibition but a liability for P450 metabolism. Pyrrolopyrimidine (43) emerged as the optimal compound that balanced micromolar inhibition of nonreplicating Mtb and TGFBR1 while also demonstrating improved metabolic stability and pharmacokinetic profiles.