Here's why:
* Potassium is a metal, and its symbol is K. It forms a cation (positively charged ion) with a +1 charge.
* Chlorine is a nonmetal, and its symbol is Cl. It forms an anion (negatively charged ion) with a -1 charge.
When naming ionic compounds, we follow these general rules:
1. Cation name is written first.
2. Anion name is written second, with its suffix changed to -ide.
Therefore, the name of the compound containing potassium and chlorine is potassium chloride.