This study employed Environmental DNA (eDNA) barcoding technology to delve into the influence of the tributaries and mainstem on fish diversity and spatiotemporal distribution in a hotspot fish conservation area in the upper Yangtze River. A total of 123 fish species were detected, belonging to 7 orders, 19 families, and 77 genera. The composition of fish species in tributaries is similar to that in mainstem, with higher fish community diversity in tributaries during the spring and summer. Exploration of fish ecotypes revealed significant differences between mainstem and tributaries. The fish community is mainly influenced by key environmental factors such as water temperature, dissolved oxygen, electrical conductivity, and ammonia nitrogen, with a higher impact of these factors on tributaries than on mainstem. In conclusion, while tributaries and mainstem in the Jiangjin section exhibit similarities in fish community composition, there are notable differences in community structure and diversity. Therefore, the protection of not only mainstem but also tributaries and their associated fish habitats is crucial for promoting the overall health and sustainability.