The IMDG Code classifies dangerous goods into nine classes based on their hazards, such as flammability, corrosiveness, and toxicity. Each class is further divided into divisions and packing groups to specify the severity and packaging requirements. For example, Class 6 covers toxic and infectious substances, which are of particular interest in toxicology due to their potential to cause harm to living organisms.