The title compound, C16H19NO5, which was synthesized from p-methoxycinnamic acid, has intramolecular O—H⋯O and N—H⋯O hydrogen-bonding interactions. In the crystal, molecules are linked by weak C—H⋯O hydrogen bonds and aromatic π–π stacking interactions [minimum ring centroid–centroid separation = 3.790 (1) Å].