The nucleus contains chromatin made of DNA and histones that functions in DNA replication and transcription. The rough endoplasmic reticulum contains ribosomes and functions as the site of protein synthesis and folding. Lysosomes contain hydrolytic enzymes that break down macromolecules through autophagy and autolysis. Mitochondria have inner and outer membranes and generate ATP through oxidative phosphorylation.