Lewis basic DABCO-functionalized 3D-like metal–organic framework, Zn-MOF, catalyzes nitroaldol (Henry) reaction of 4-nitrobenzaldehyde with nitroalkanes in a size-dependent manner. Small nitroalkanes give rise to higher conversion than larger ones. This MOF-based heterogeneous catalyst is very robust and can be recycled several times without losing its activity.