In the title compound, C(18)H(18)ClN(3)O(4), the dihedral angle between the pyrimidine ring and the N-bonded ester grouping is 56.27 (7)° and the dihedral angle between the aromatic rings is 11.23 (7)°.