They both rely on electrons to create their bonds. For example, the ionic bond is created when an atom that tends to loose electrons is placed in contact with an atom that tends to gain them; the result is an electron transfer. The covalent bond is created when atoms are held together by sharing their electrons.