A facile one-pot route was developed to obtain organic nanoparticles for fabrication of microporous POFs which can be utilized to entrap Ag nanoparticles and show excellent catalytic performance for organic dyes such as methylene blue in water.