Chlorine is prepared in the laboratory by treating manganese dioxide(MnO2) with aqueous hydrochloric acid according to the reaction: