A flux limiter is a mathematical tool used in numerical methods for solving partial differential equations to prevent non-physical oscillations that can arise near discontinuities in the solution. They achieve this by smoothly adjusting the numerical flux, ensuring stability and accuracy while maintaining sharp transitions between different solution states.