Pet dogs are a valuable natural animal model for studying relationships between primary immunodeficiencies and susceptibility to Pneumocystis and other opportunistic respiratory pathogens. Certain breeds, such as the Cavalier King Charles Spaniel, are over-represented for Pneumocystis pneumonia (PCP), suggesting the presence of a primary immunodeficiency in the breed. Here, we report the discovery of a CARMIL2 nonsense variant in three Cavalier King Charles Spaniel dogs with either PCP (n = 2) or refractory Bordetella pneumonia (n = 1). CARMIL2 encodes a protein that plays critical roles in T-cell activation and other aspects of immune function. Deleterious CARMIL2 variants have recently been reported in human patients with PCP and other recurrent pneumonias. In addition to opportunistic respiratory infection, the affected dogs also exhibited other clinical manifestations of CARMIL2 deficiencies that have been reported in humans, including early-onset gastrointestinal disease, allergic skin disease, mucocutaneous lesions, abscesses, autoimmune disorders, and gastrointestinal parasitism. This discovery highlights the potential utility of a natural canine model in identifying and studying primary immunodeficiencies in patients affected by PCP.