Answer
Rejewski dedicated nearly seven years to deciphering Enigma, the German encryption machine used during World War II. His relentless efforts, along with those of his colleagues, played a pivotal role in breaking the Enigma code, providing invaluable intelligence to the Allies and significantly contributing to the Allied victory.