Why is sodium chloride a compound?

Sodium chloride is a compound because is formed from two different chemical elements bonded together with a chemical bond.