The basic physics of the processes playing the most important role in divertor plasma detachment is reviewed. The models used in the two-dimensional edge plasma transport codes that are widely used to address different issues of the edge plasma physics and to simulate the experimental data, as well as the numerical schemes and convergence issues, are described. The processes leading to ultimate divertor plasma detachment, the transition to and the stability of the detached regime, as well as the impact of the magnetic configuration and divertor geometry on detachment, are considered. A consistent, integral physical picture of ultimate detachment of a tokamak divertor plasma is developed.