Thanos is often stopped through the combined efforts of various superheroes who use their unique powers and strategies to overcome him.
Thanos is typically stopped in the comics when the heroes find his weaknesses and exploit them. It could be through discovering a flaw in his plans or using a special power or object to gain the upper hand.