The present invention concerns shape memory materials comprising polyelectrolyte segments. These segments can be used for fixing a permanent shape and/or such segments can also be employed as switching segments responsible for the fixation and release of the temporary shape.