Slicing software is used to prepare a 3D model file for 3D printing. It takes the 3D model and slices it into hundreds or thousands of horizontal layers, generating a G-code file that instructs the 3D printer how to create the model layer by layer.