Sodium chloride is formed by bonding between positively charged sodium ions $(Na^{+})$ and negatively charged chloride ions$(Cl^{-})$. The type of bonding between these ions is ionic bonding as ionic bonds are formed by the electrical attractions between ions bearing opposite charges ($eg.$,$Na^{+}\ and\ Cl^{-})$.