Isoprene is a hydrocarbon monomer with the formula C5H8, which serves as a building block for natural and synthetic rubbers due to its ability to polymerize.