The aim of this bachelor thesis is to summarize the methods of surface treatment of magnesium alloys and discussion of theireffectiveness of corrosion protection. In contrast to other metallic material used in technical practice, magnesium alloys have the lowest corrosion resistance, which can be increased by alloying or by use of surface treatments. The introduction part of the thesis deals with general knowledge about magnesium, its alloys AZ31, AZ91 and their corrosion processes. The recherché includes actual results of research about these alloys. Emphasizedare fluoride conversion coatings and composite coatings based on nickel, where their preparation is described and attention is focused on their properties in the sense of corrosion p...