The plant circadian clock determines when certain defense responses are activated (often timed with peak activity of pests), and compounds used in defense affect the clock. New findings show how the clock regulates stomata opening/closure for defense, and how the defensive compound jasmonic acid influences the clock. This could lead to plants that are better at defending themselves, reducing the need for pesticides, and potentially influencing timing for human medical treatment.