Z-buffering is a computer graphics technique used to determine which objects, or parts of objects, are visible in a rendered scene by comparing depth values of pixels. It helps manage the visibility of surfaces in 3D graphics, ensuring that closer objects obscure those further away, thereby creating a realistic depth perception in the scene.