* Potassium (K) is a metal and tends to lose one electron to achieve a stable electron configuration. This makes it form a positively charged ion (K⁺).
* Fluorine (F) is a nonmetal and tends to gain one electron to achieve a stable electron configuration. This makes it form a negatively charged ion (F⁻).
The strong electrostatic attraction between the oppositely charged potassium and fluoride ions forms the ionic bond that holds them together in the compound potassium fluoride (KF).