Osmium tetroxide (OsO4) acts as an oxidizing agent in the dihydroxylation of alkenes, a reaction that adds two hydroxyl groups (OH) across the double bond of an alkene to form a vicinal diol. The reaction with OsO4 is stereospecific, resulting in the syn addition of OH groups.