Disclosed are triazines and pyrimidines of formula I and the use thereof in controlling insects. Also disclosed are synthetic procedures, intermediates for preparing the compounds, pesticide compositions containing the compounds, and methods of controlling insects using the compounds. Examples of the compounds of formula I are; N-(4-chlorophenyl)-4-(2,6-difluorophenyl)-6-(2-(4-(trifluoromethoxy)benzylidene)hydrazinyl)-1,3,5-triazin-2-amine and N-((6-chloropyridin-3-yl)methyl)-6-phenyl-2-(2-(4-(trifluoromethoxy)benzylidene)hydrazinyl)pyrimidin-4-amine.