Dentin is the hard connective tissue that forms the bulk of the tooth. It consists of tubules throughout its thickness and determines the shape of the tooth crown. Dentin is formed by odontoblasts that differentiate from dental papilla cells and produce an organic matrix that becomes mineralized. There are three types of dentin - primary, secondary, and tertiary. Primary dentin forms most of the tooth, secondary dentin is deposited after root formation, and tertiary dentin is reparative dentin deposited in response to stimuli. Dentin has a tubular structure and contains both collagen and hydroxyapatite crystals.