A diol is a type of organic compound that contains two hydroxyl groups (-OH) attached to different carbon atoms. Diols are a subclass of alcohols, and they are commonly referred to as glycols. The hydroxyl groups in diols make them relatively polar, influencing their solubility and reactivity.