This account of thermomechanical behaviour of granular and porous materials deals with: experiments; theoretical deduction of macroscale equations; the macroscopic description in a continuum-thermodynamical and statistical context; and analysis of solutions by numerical techniques.