By using numerical code RFPA2D (Rock Failure Process Analysis), the evolution of fracture around cavities subjected to uniaxial and polyaxial compression is examined through a series of model simulation. It is shown from the numerical results that the chain of events leading to the collapse of the cavity may involve all or some of the fractures designated as primary tensile, shear and remote fracture. Numerical simulated results reproduce the evolution of three types of fractures. Under the condition of no confining pressure, the tensile mode dominates with collapse coinciding with the sudden and explosive appearance of the secondary tensile fracture; at moderate higher confining pressure, the tensile mode is depressed, comparatively, the shear effect is strengthened. Nevertheless, tensile fractures especially in remote fractures stage still play a role; at higher pressure, the shear fracture dominates the remote fractures. In addition, the evolution and interact of fractures between multiple cavities is investigated, considering the stress redistribution and transference in compressive and tensile stress field.