Plants depend heavily on soil nutrients for growth, development and defence. Nutrient availability is crucial not only for sustaining vital biochemical processes but also for mounting effective defences against a diverse array of pathogens. Macronutrients such as nitrogen, phosphorus and potassium significantly influence plant defence mechanisms by providing essential building blocks for the synthesis of defence compounds, immune signalling and physiological responses like stomatal regulation. Micronutrients like zinc, copper and iron are essential for balancing reactive oxygen species and other reactive compounds in plant immune responses. Although substantial circumstantial evidence links nutrient availability to plant defence, the molecular mechanisms underlying this process have only recently started to be understood. This review focuses on summarizing recent advances in understanding the molecular mechanisms by which nitrogen, phosphorus and iron interact with plant defence mechanisms and explores the potential for engineering nutritional immunity in crops to enhance their resilience against pathogens.