This document outlines the pathogenesis of contact stomatitis, which is an inflammation of the soft tissues lining the oral cavity caused by allergic reactions. It describes the types of allergic stomatitis, including contact allergic stomatitis caused by materials like nickel, mercury, and cobalt, as well as prosthetic allergic stomatitis caused by dental materials. The pathogenesis involves a delayed type hypersensitivity reaction mediated by T-cells. Diagnosis is made using patch testing to identify sensitizing allergens. Treatment involves local or systemic corticosteroids and immunosuppressants to reduce inflammation.