The role of impurity radiation at the plasma edge of fusion devices is considered. The conditions critical for the development of radiative instabilities leading to the formation of detachment and MARFE and those necessary for the creation of a stable radiating edge, protecting the wall elements from intensive heat loads, are analyzed.