Here's why:
* Metals tend to lose electrons easily, becoming positively charged ions (cations).
* Fluorine readily gains an electron to complete its outer shell, becoming a negatively charged ion (anion).
This attraction between opposite charges results in the formation of an ionic bond, creating a stable compound.
Examples:
* Sodium fluoride (NaF): Sodium (Na) loses one electron to become Na+, and fluorine (F) gains one electron to become F-. They combine to form NaF.
* Calcium fluoride (CaF2): Calcium (Ca) loses two electrons to become Ca2+, while two fluorine atoms each gain one electron to become F-. They combine to form CaF2.
Note: Fluorine can also form covalent bonds with other nonmetals, but these compounds are not considered ionic.