Muzan was ultimately defeated by the collective efforts of Tanjiro, Nezuko, and the other demon slayers. Their teamwork and perseverance were key to ending Muzan's reign of terror in the manga.
Tanjiro's fate in the manga is that he ultimately passed away. This event was a significant part of the story's development and had a profound impact on the other characters and the overall plot.