Alum is both a specific chemical compound and a class of chemical compounds. The specific compound is the hydrated aluminium potassium sulfate with the formula KAl(SO4)2.12H2O. The wider class of compounds known as alums have the related stoichiometry, AB(SO4)2.12H2O.