These bonds are formed when two oppositely charged ions attract each other and form a stable compound.