 In this reaction, the base deprotonates nitroethane to form a resonance stabilized anion.This anion nucleophilically adds to the aldehyde forming a beta nitro alcohol, which is subsequently dehydrated to yield the nitroalkene.This reaction is known as a nitroaldol reaction.