We analyse the limits of the diffusion approximation to the time-independent equation of radiative transfer for homogeneous and heterogeneous biological media. Analytical calculations and finite-difference simulations based on diffusion theory are compared with discrete-ordinate, finite-difference transport calculations. The influence of the ratio of absorption and transport scattering coefficient (mu(a)/mu'(s)) on the accuracy of the diffusion approximation are quantified and different definitions for the diffusion coefficient, D, are discussed. We also address effects caused by void-like heterogeneities in which absorption and scattering are very small compared with the surrounding medium. Based on results for simple homogeneous and heterogeneous systems, we analyse diffusion and transport calculation of light propagation in the human brain. For these simulations we convert density maps obtained from magnetic resonance imaging (MRI) to optical-parameter maps (mu(a) and mu'(s)) of the brain. We show that diffusion theory fails to describe accurately light propagation in highly absorbing regions, such as haematoma, and void-like spaces, such as the ventricles and the subarachnoid space.