A smart combination of electrospinning and sol–gel reaction enabled to develop crosslinked poly(ε-caprolactone) fibrous mats showing excellent shape memory properties.