As we know that chloride ion is halogen. So it has seven valence electrons in its valence shell. Hence it gains one electron from others during chemical reaction to be stable. So Chloride ion have a negative charge of -1.
In an ionic bonds, the metal loses electrons to become a positively charged cation, In which the nonmetal accepts those electrons to become a negatively charged anion.