Novel poly(dimethylsiloxane) based macroporous gels (cryogels) were prepared via a simple and rapid photo-induced thiol-ene click reaction at low temperatures. The cryogels formed were able to float on a water surface and selectively remove oils or organic solvents with excellent recyclability.