Lumazine synthase catalyzes the penultimate step in the biosynthesis of riboflavin. A homologous series of three pyrazolopyrimidine analogues of a hypothetical intermediate in the lumazine synthase-catalyzed reaction were synthesized and evaluated as lumazine synthase inhibitors. The key steps of the synthesis were C-5 deprotonation of 4-chloro-2,6-dimethoxypyrimidine, acylation of the resulting anion, and conversion of the product to a pyrazolopyrimidine with hydrazine. Alkylation of the pyrazolopyrimidine with a substituted ribityl iodide and deprotection of the ribityl chain afforded the final set of three products. All three compounds were extremely potent inhibitors of the lumazine synthases of Mycobacterium tuberculosis, Magnaporthe grisea, Candida albicans, and Schizosaccharomyces pombe lumazine synthase, with inhibition constants in the low nanomolar to subnanomolar range. Molecular modeling of one of the homologues bound to Mycobacterium tuberculosis lumazine synthase suggests that both the hypothetical intermediate in the lumazine synthase-catalyzed reaction pathway and the metabolically stable analogues bind similarly.