Nanotribology explores the mechanical properties of materials at small length scales, where deviations from the scaling laws of macroscopic descriptions are observed. Atomic force microscopy is introduced as an important instrument in nanotribology for imaging friction contrasts on heterogeneous surfaces, for quantitative friction studies, and for the observation of single dislocation processes in plastic deformation. Recent experimental results for the frictional properties of carbon-based materials are discussed. Friction studies using microstructured surfaces are presented as an attempt to bridge the gap between nanotribological and macroscopic friction studies.