Background: This study focused on evaluating the diversity and richness of the edaphic macrofauna in eight banana farms in the western zone of Nicaragua. Methods: The sampling design was random and descriptive, it was divided into two phases, the first was the collection of the sample, and the second was the classification, coding, and storage of the extracted macrofauna populations. Subsequently, the indices of diversity and species richness, relative abundance, by functional groups were estimated. Results: The results showed that the relative abundance of biodiversity was higher in the 0–20 cm soil depth stratum than in the branch and leaf biomass strata. The values of the diversity indices of Dominion, Simpson, Shanon, Margalef, and Equity were in the normal range, with a tendency towards low diversity. Likewise, in the richness of species, the Dominant or most abundant genus were earthworms (Oligochaeta) and Hymenoptera (Solenopsis, Leptothorax, Camponotus, Pheidole), indicating the directly proportional relationship, that is to say, that the greater the number of earthworms the production increases and the greater the number of Hymenoptera it decreases, confirmed with the Pearson correlation coefficient with a reliability of 95%. Conclusions: It was concluded that based on the estimates of the diversity indicators, two detritivore genus (earthworms and Hymenoptera) were the ones with the greatest presence, being important in the production of the banana agrosystem due to the decomposition of organic matter and its nutritional contribution to the plant. We observed a direct correlation with earthworms and an indirect relationship with Hymenoptera.