The title compound, C14H17NO4, features an epoxide-O atom fused to a pyrrolidyl ring, the latter having an envelope conformation with the N atom being the flap. The 4-meth-oxy-phenyl group is orthogonal to [dihedral angle = 85.02 (6)°] and lies to the opposite side of the five-membered ring to the epoxide O atom, while the N-bound ethyl ester group (r.m.s. deviation of the five fitted atoms = 0.0187 Å) is twisted with respect to the ring [dihedral angle = 17.23 (9)°]. The most prominent inter-actions in the crystal are of the type methine-C-H⋯O(carbon-yl) and these lead to the formation of linear supra-molecular chains along the c axis; weak benzene-C-H⋯O(epoxide) and methine-C-H⋯O(meth-oxy) inter-actions connect these into a three-dimensional architecture. The analysis of the Hirshfeld surface confirms the presence of C-H⋯O inter-actions in the crystal, but also the dominance of H⋯H dispersion contacts.
In the title compound, C12H12N2O4, the di-hydro-pyrrole ring is almost planar (r.m.s. deviation = 0.0049 Å) and is nearly coplanar with the adjacent C2O2 residue [dihedral angle = 4.56 (9)°], which links to the 4-nitro-benzene substituent [dihedral angle = 4.58 (8)°]. The mol-ecule is concave, with the outer rings lying to the same side of the central C2O2 residue and being inclined to each other [dihedral angle = 8.30 (7)°]. In the crystal, supra-molecular layers parallel to (10-5) are sustained by nitro-benzene-C-H⋯O(carbon-yl) and pyrrole-C-H⋯O(nitro) inter-actions. The layers are connected into a three-dimensional architecture by π(pyrrole)-π(nitro-benzene) stacking [inter-centroid separation = 3.7414 (10) Å] and nitro-O⋯π(pyrrole) inter-actions.