Hantzsch condensation of 2-[4-(3,4-dichlorophenyl)piperazin-1-yl]ethyl acetylacetate (III) with methyl 3-aminocrotonate (II) and 3-nitrobenzaldehyde (I) in eftuxing isopropanol affords title compound.