Chlorine atom gains one electron in the outermost shell to complete the octet. On gaining one electron, a negatively charged chloride ion is formed.