We have studied the attenuation of the surface rapid magnetic waves in the sun resulting from solar radiation and collisions and their role in heating the layers of the chromosphere and the corona of the sun, considering that this damping may be one of the reasons for the high temperature of these two layers despite their distance from the main heat source in the sun It is the nucleus (Core).