By cyclization of 3-nitrobenzaldehyde (I) with 3-nitratopropyl-3-aminocrotonate (II) and 2-nitratopropyl acetoacetate (III) in refluxing benzene. The starting products (II) and (III) are obtained as follows: The reaction of diketene (IV) with 3-bromopropanol (V) by means of sodium acetate at 50 C gives 3-bromopropyl acetoacetate (VI), which by reaction with AgNO3 in refluxing acetonitrile is converted to 3-nitratopropyl acetoacetate (VII). Finally, this compound is treated with NH3 in THF to afford the aminocrotonic ester (II). The reaction of diketene (IV) with 2-chloropropanol (VIII) as before gives 2-chloropropyl acetoacetate (IX), which is treated with AgNO3 as before to yield acetoacetate (III).