Anisotropic filtering is a texture filtering technique used in computer graphics to enhance the quality of textures on surfaces that are viewed at oblique angles, reducing blurriness and preserving detail. It achieves this by using a non-uniform sampling pattern that adapts to the angle of the surface, providing more samples along the direction of the texture stretch.