When electrons are transferred between two atoms, a covalent bond is formed.