* Beryllium is a metal located in Group 2 of the periodic table. It tends to lose two electrons to achieve a stable electron configuration, forming a +2 cation (Be²⁺).
* Sulfur is a nonmetal located in Group 16 of the periodic table. It tends to gain two electrons to achieve a stable electron configuration, forming a -2 anion (S²⁻).
The electrostatic attraction between the positively charged beryllium ion (Be²⁺) and the negatively charged sulfide ion (S²⁻) results in the formation of an ionic bond. This bond is characterized by the transfer of electrons from the metal to the nonmetal.
The resulting compound formed by beryllium and sulfur is beryllium sulfide (BeS).