Nuclei are held together by the strong nuclear force. Protons experience a force of repulsion due to the electrostatic force, if the forces are out of balance the nuclei becomes unstable.
4 reasons a nuclei might become unstable:
. too many neutrons - beta minus emission
. too many protons - beta plus emission
. too many nucleons - decays through alpha emission
. too much energy - decays through gamma emission