K2SO4 is composed of potassium ions (K+) and sulfate ions (SO4^2-). The potassium ions are positively charged, while the sulfate ions are negatively charged. The electrostatic attraction between the positive and negative ions holds the compound together.