Teeth are vulnerable to structural compromise, primarily attributed to carious lesions, in which microorganisms originating from the oral cavity deteriorate the mineralized structures of enamel and dentin, subsequently infiltrating the underlying soft connective tissue, known as the dental pulp. Nonetheless, dental pulp possesses the necessary capabilities to detect and defend against bacteria and their by-products, using a variety of intricate defense mechanisms. The pulp houses specialized cells known as odontoblasts, which encounter harmful substances produced by oral bacteria. These cells identify pathogens at an early stage and commence the immune system response. As bacteria approach the pulp, various cell types within the pulp, such as different immune cells, stem cells, fibroblasts, as well as neuronal and vascular networks, contribute a range of defense mechanisms. Therefore, the immune system is present in the healthy pulp to restrain the initial spread of pathogens, and then in the inflamed pulp, it prepares the conditions for necrosis or regeneration, so inflammatory response mechanisms play a critical role in maintaining tissue homeostasis. This review aims to consolidate the existing literature on the immune system in dental pulp, encompassing current knowledge on this topic that explains the diverse mechanisms of recognition and defense against pathogens exhibited by dental pulp cells, elucidates the mechanisms of innate and adaptive immunity in inflamed pulp, and highlights the difference between inflamed and normal pulp tissue.