Hypersensitivity pneumonitis (HP) is an exposure-related interstitial lung disease with two phenotypes—fibrotic and non-fibrotic. Genetic predisposition is an important factor in the disease pathogenesis and fibrosis development. Several genes are supposed to be associated with the fibrosing cascade in the lungs. One of the best-recognized and most prevalent is the common MUC5B gene promoter region polymorphism variant rs35705950. The aim of our study was to establish the frequency of the minor allele of the MUC5B gene in the population of patients with HP and to find the relationship between the MUC5B promoter region polymorphism and the development of lung fibrosis, the severity of the disease course, and the response to the treatment in patients with HP. Eighty-six consecutive patients with HP were tested for the genetic variant rs35705950 of the MUC-5B gene. Demographic, radiological, and functional parameters were collected. The relationship between the presence of the T allele and lung fibrosis, pulmonary function test parameters, and the treatment response were analyzed. The minor allele frequency in the study group was 17%, with the distribution of the genotypes GG in 69.8% of subjects and GT/TT in 30.2%. Patients with the GT/TT phenotype had significantly lower baseline forced vital capacity (FVC) and significantly more frequently had a decline in FVC with time. The prevalence of lung fibrosis in high-resolution computed tomography (HRCT) was not significantly increased in GT/TT variant carriers compared to GG ones. The patients with the T allele tended to respond worse to immunomodulatory treatment and more frequently received antifibrotic drugs. In conclusions: The frequency of MUC5B polymorphism in HP patients is high. The T allele may indicate a worse disease course, worse immunomodulatory treatment response, and earlier need for antifibrotic treatment.