This work aimed to examine the fractal dimension and the difference in the law between intact and compacted loess before and after collapse. Uniaxial compression tests were performed to obtain specimens under various vertical stresses, and mercury intrusion porosimetry (MIP) tests were conducted to determine the pore size distribution (PSD). Three models were selected to determine the fractal dimensions based on PSD. As a result, the pores were classified into ultra-micropores (d < 0.1 μm), micropores (0.1 μm < d < 2 μm), small pores (2 μm < d < 10 μm), and large pores (d > 10 μm). When the fractal dimensions were determined using the capillary pressure model, there were three fractal intervals (Ds1, Ds2, and Ds3), with only Ds1 and Ds2 meeting the definition of fractal dimension. Ds1 increased considerably after the collapse, but Ds2 declined. The thermodynamic law-based model presented the best linear fit, and there was only one fractal interval. The fractal dimension Dn increased dramatically after the specimen underwent wet collapse. In conjunction with fractal theory, it revealed that collapse changed the uniformity of the pore system, making the microscopic pores coarser and more intricate after collapse.