Electron revolve around the nucleus,the centripetal force for the revolution is given by electrostatic force, electron is negatively charged and nucleus contain protons so nucleus has positive charge this negative and positive charge creates electrostatic force