Eli Cohen was captured due to the efforts of Syrian counterintelligence, who eventually uncovered his spy activities. He was subsequently convicted, sentenced to death, and executed.
Master of Disguise: The Intriguing Tale of Eli Cohen, Israel's Legendary Spy