Yeah, aside from the numerous armies lost, includijg dwarves and elves, ~1000 years of fighting, it took two literal kings dying to defeat him, Gil-galad and Elendil. But, Sauron was also defated. In the end, Isildur showed up and chopped off his finger and took the ring.