The title compound was synthesized through Baylis-Hillman reaction of p-nitrobenzaldehyde (I) with acrylonitrile (II) in the presence of 1,4-diazabicyclo[2.2.2]octane (DABCO) and NaI.