When we die, the pump mechanism that keeps calcium ions out of the muscle cells ceases to operate and calcium floods across the cell membranes. This causes the actin and myosin filaments within muscle to contract and then lock, shortening the muscle.