In the title compound, C16H18N4O2, known also as peribedil, the dihedral angle between the mean planes of the pyrimidine and benzene rings is 56.5 (8)°. The 1,3-dioxole fragment adopts an envelope conformation with the methyl-ene C atom forming the flap; this atom deviates by 0.232 (3) Å from the plane defined by the remaining atoms of the 1,3-benzodioxole unit. In the crystal, C-H⋯π inter-actions between c-glide-related mol-ecules arrange them into columns extending along the c-axis direction. The columns related by a unit translation along the b axis are packed into (100) layers via another C-H⋯π inter-action involving the pyrimidine ring as an acceptor.