NIOSH plays a crucial role in cancer prevention by identifying and researching carcinogens found in the workplace. It develops guidelines and recommendations for minimizing exposure to these harmful substances, thereby reducing the risk of occupational cancer.