We determine the nonlinear mechanical behavior of a prototypical zeolitic imidazolate framework (ZIF-8) along two modes of mechanical failure in response to tensile and shear forces using first-principles simulations. Our generalized stacking fault energy surface reveals an intrinsic stacking fault of surprisingly low energy comparable to that in copper, though the energy barrier associated with its formation is much higher. The lack of vibrational spectroscopic evidence for such faults in experiments can be explained with the structural instability of the barrier state to form a denser and disordered state of ZIF-8 seen in our analysis, that is, large shear leads to its amorphization rather than formation of faults.