Novel dioxazine- and oxdiazine-substituted arylamides of the formula (I) in which A1, A2, R1, R2, R3, R4 and R5 are as defined in the description, a plurality of processes for preparing these compounds and their use for controlling pests, and also novel intermediates and processes for their preparation.