Ankle fusion, or arthrodesis, is performed when there is severe joint damage due to conditions like arthritis. The procedure involves fusing the bones in the ankle joint to reduce pain and improve stability.