The present invention relates to compositions and structure of deformable alloys on the basis of magnesium with an optimum combination of mechanical properties (strength, plasticity) and a resistance to corrosion, including in vivo . Alloys of the new group possess an excellent formability at room temperature, high corrosion stability in sodium chloride solution, excellent heat resistance and can be used in various technical applications, particularly in vivo as a structural material for stents. They comprise preferably indium, scandium, yttrium, rare earth metals and zirconium.