Recently, aging is considered a risk factor for various diseases. Although changes in the intestinal microbiota along with aging are thought to associate with the increased disease risk, mechanisms that cause age-related transition of the intestinal microbiota remain unknown. This study aims to clarify relationships between the amount of human defensin 5 (HD5), a Paneth cell α-defensin, which is known to regulate the intestinal microbiota, and age-related differences of the intestinal microbiota composition. Fecal samples from 196 healthy Japanese (35 to 81 years old) were collected and measured HD5 concentration. HD5 concentration in the elderly group (age > 70 years old) was significantly lower than the middle-aged group (age ≤ 70 years old). Furthermore, individual age was negatively correlated with HD5 concentration (r = − 0.307, p < 0.001). In β-diversity, the intestinal microbiota of the elderly showed a significantly different composition compared to the middle-aged. At the genus level, relative abundance of Collinsella, Alistipes, Peptococcaceae; unassigned, Lactobacillus, Lactococcus, Weissella, Christensenellaceae R-7 group, Megasphaera, and [Eubacterium] eligens group was significantly higher, and Lachnospiraceae; unassigned, Blautia, Anaerostipes, Fusicatenibacter, Dorea, and Faecalibacterium was significantly lower in the elderly compared to the middle-aged. In addition, HD5 concentration was negatively correlated with Alistipes, Peptococcaceae; unassigned, and Christensenellaceae R-7 group and positively correlated with Lachnospiraceae; unassigned and Dorea. These results provide novel insights into the immunosenescence of enteric innate immunity, indicating low HD5 is suggested to contribute to the age-related differences in the intestinal microbiota and may relate to increased risk of diseases in elderly people.