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