#AgCl# is a binary ionic compound. To name a binary ionic compound, the cation goes first, followed by the anion. The suffix "-ide" is then added to the anion.
For #AgCl#, the cation is #Ag^+# (silver) and the anion is #Cl^-#(chlorine). We just change the suffix of chlorine to "-ide", then we have silver chloride.