A diol is a type of alcohol-containing two hydroxyl (OH) groups in its molecular structure, often used as a building block in polymer chemistry.