Atrazine is a pesticide used to control broadleaf weeds, however its wide distribution and its high persistence in the soil and in surface waters has resulted in a public and environmental health problem. Present results shows the design, construction and characterization of glassy carbon electrodes modified with tetrarutenated metalloporphyrin (M=Ni (II) and Zn (II)) and 1‐butyl‐3‐methylimidazolium bis (trifluoromethylsulfonyl) imide, BMIMNTF2. The modification was reproducible and sensitive for the electrochemical detection of atrazine in neutral media. The detection limit was 230 nM when using GC/BMIMNTF2/ZnTRP and 540 nM with GC/BMIMNTF2/NiTRP, meaning that his methodology can be a feasible and inexpensive way to detect atrazine in trace levels.