Chromatin is a complex of DNA and proteins, primarily histones, that organize and condense the genetic material within the nucleus. There are two main types of chromatin: euchromatin and heterochromatin. Euchromatin is less condensed and transcriptionally active, allowing genes to be expressed. Heterochromatin is more condensed and transcriptionally inactive, often containing repetitive sequences and playing a role in maintaining genome stability.