Parasitic plants are globally prevalent pathogens that withdraw nutrients from their host plants using an organ known as the haustorium. Some, the obligate parasites are entirely dependent on their hosts for survival, whereas others, the facultative parasites, are independent of their hosts and infect depending on environmental conditions and the presence of the host. How parasitic plants regulate their haustoria in response to their environment is largely unknown. Using the facultative root parasite Phtheirospermum japonicum, we found that external nutrient levels modified haustorial numbers. This effect was independent of phosphate and potassium but nitrates were sufficient and necessary to block haustoria formation. Elevated nitrate levels prevented the activation of hundreds of genes associated with haustoria formation, downregulated genes associated with xylem development and increased levels of abscisic acid (ABA). Enhancing ABA levels independently of nitrates blocked haustoria formation whereas reducing ABA biosynthesis allowed haustoria to form in the presence of nitrates suggesting that nitrates mediated haustorial regulation in part via ABA production. Nitrates also inhibited haustoria formation and reduced infectivity of the obligate root parasite Striga hermonthica, suggesting a more widely conserved mechanism by which parasitic plants adapt their extent of parasitism according to nitrogen availability in the external environment.