The atomic nucleus is composed of protons and neutrons. Since the neutrons are neutral, they are not attracted to or repelled from anything electromagnetically. More importantly, the protons are positive. Hence, they repel each other electromagnetically.