Atoms form chemical bonds because they make their outer electron cells more stable. An ionic bond, where one atom importantly donates an electron to another and forms when one atom becomes stable by losing its outer electron. In contrast, the other atom becomes stable (generally, by feeling its valence shell) by gaining the electron.