Salt is an ionic compound, made of sodium and chloride atoms (NaCl). When a number of these molecules get together to form a crystal, they tend to arrange themselves in a cubic pattern. As a result, the salt crystals are also cubic.