Z-buffering is a technique for deeply sorting 3D objects in a scene. It is used to determine which objects or parts of objects should be displayed in the foreground or background. The Z-Buffer stores the depth information of objects and helps to avoid overlaps and visibility issues.