They are attracted towards the nucleus because of the electromagnetic force .
The electrons in an atom are attracted to the protons in the nucleus by the electromagnetic force .