CaSO4 is composed of a positively charged calcium ion (Ca2+) and a negatively charged sulfate ion (SO42-). The attraction between these oppositely charged ions is what holds the compound together, making it an ionic compound.