WAR ATLAS / Figures / Marian Rejewski: The Polish Mathematician Who Broke Enigma
Marian Rejewski: The Polish Mathematician Who Broke Enigma
Marian Rejewski (1905–1980) was a Polish mathematician and cryptologist who, in December 1932, broke the code of the German Enigma machine, one of the greatest achievements in the history of codebreaking. Working with his colleagues Jerzy Rozycki and Henryk Zygalski at the Polish Cipher Bureau, Rejewski used mathematics, rather than the linguistic methods that had dominated codebreaking, to reconstruct the wiring of the Enigma and to develop methods for reading its messages. His work laid the foundation for the Allied codebreaking effort at Bletchley Park, where the British built on Polish methods to read German communications throughout the Second World War.

Rejewski was born in Bydgoszcz, then part of the German Empire, and he studied mathematics at the University of Poznan. He was recruited by the Polish Cipher Bureau in 1932, and he was given the task of breaking the Enigma, a machine that the German army had adopted for its most secret communications. The Enigma was believed by its designers to be unbreakable: it had billions of possible settings, and its rotors changed the code with every letter. Rejewski, using a combination of mathematics, logic and the intelligence provided by a French agent, reconstructed the machine’s wiring and developed the first methods for reading its messages.
By 1938 the Poles were reading German Enigma traffic regularly, a feat that the British and French had not achieved.
In July 1939, weeks before the German invasion of Poland, the Polish Cipher Bureau shared its work with British and French intelligence, handing over reconstructed Enigma machines and the details of Rejewski’s methods. That gift, made at a meeting at Pyry, near Warsaw, was one of the most important intelligence transfers of the war, and it saved the British years of work. Rejewski himself fled Poland after the invasion, served in France and Britain, and lived for many years in obscurity, his contribution unrecognised. It was only in the 1970s, when the story of Bletchley Park was declassified, that his achievement was widely acknowledged.
Today he is recognised as one of the founders of modern cryptology.
1. Key Facts
| Field | Value |
|---|---|
| Full name | Marian Adam Rejewski |
| Born | 16 August 1905, Bydgoszcz, German Empire (now Poland) |
| Died | 13 February 1980, Warsaw, Poland (aged 74) |
| Nationality | Polish |
| Education | University of Poznan, mathematics; University of Gottingen |
| Main role | Cryptologist, Polish Cipher Bureau (Biuro Szyfrow), 1932–1939 |
| Colleagues | Jerzy Rozycki; Henryk Zygalski |
| Main achievement | Broke the German Enigma code, December 1932 |
| Key inventions | The cyclometer; the cryptologic bomb (bomba kryptologiczna); the perforated sheets method with Zygalski |
| Intelligence shared | July 1939, Pyry meeting: Enigma machines and methods given to Britain and France |
| Post-war life | Worked in accountancy in Bydgoszcz; contribution recognised only in the 1970s |
| Honours | Order of Polonia Restituta; posthumous recognition in Poland, Britain and the United States |
2. Early Life and Education
Growing Up in Bydgoszcz
Marian Rejewski was born on 16 August 1905 in Bydgoszcz, a city in the Prussian partition of Poland. His father, Jozef Rejewski, was a merchant, and his mother, Matylda, came from a family of traders. Rejewski grew up in a Polish household in a city that was then part of the German Empire, and he was educated in German schools, becoming fluent in German as well as Polish. After the First World War, Bydgoszcz became part of the newly independent Poland, and Rejewski attended the local gymnasium, where he excelled in mathematics.
He was a quiet, diligent student, with a talent for logic and for solving puzzles, qualities that would serve him well as a cryptologist.
University and Mathematics
In 1923 Rejewski enrolled at the University of Poznan to study mathematics. He was a brilliant student, and he was particularly interested in number theory and in the new field of mathematical logic. In 1928 he spent a year at the University of Gottingen in Germany, one of the leading centres of mathematics in the world, where he studied under some of the most famous mathematicians of the day. He returned to Poznan in 1929 and completed his degree, and he then worked as an assistant at the university.
His mathematical training, in particular his knowledge of group theory and permutations, would prove crucial to his work on Enigma.
Recruitment by the Cipher Bureau
In 1929 the Polish Cipher Bureau, the codebreaking organisation of the Polish General Staff, ran a cryptology course for mathematics students at Poznan, in the hope of recruiting talented young mathematicians. Rejewski was one of the students who took the course, and he was among the three who were selected for further training. The course was taught by Maksymilian Ciezki and others, and it introduced the students to the methods of codebreaking. Rejewski’s performance was outstanding, and in September 1932 he was recruited to work full-time at the Cipher Bureau in Warsaw, where he was given the most difficult problem the Bureau faced: the German Enigma machine.
3. The Enigma Machine
How Enigma Worked
The Enigma machine was an electromechanical cipher machine, invented by Arthur Scherbius in the 1920s and adopted by the German armed forces in the 1930s. It consisted of a keyboard, a set of rotors, a reflector, and a plugboard. When an operator pressed a key, an electric current passed through the rotors and the plugboard, lighting up a lamp that showed the enciphered letter. The rotors moved with each keystroke, so that the same letter was enciphered differently each time it was pressed.
The machine had an enormous number of possible settings: with three rotors, a plugboard and a ring setting, the number of combinations ran into the billions. The Germans believed that Enigma was unbreakable, and they used it for their most secret communications.
Why Enigma Seemed Unbreakable
The security of Enigma lay in its complexity and in the fact that its settings changed every day. Each morning, the operator would set the rotors and the plugboard according to a codebook, and the settings would remain in force for 24 hours. An enemy who intercepted the messages would need to determine the settings for that day, a task that seemed impossible without the codebook. The British and French codebreakers had tried to break Enigma and had failed, and they had concluded that it could only be broken by capturing a machine and its codebooks.
The Poles took a different approach: they used mathematics to reconstruct the machine’s internal wiring, and then they developed methods to determine the daily settings from the intercepted messages themselves.
The Polish Approach
The Polish approach was revolutionary because it treated Enigma as a mathematical problem rather than a linguistic one. Traditional codebreaking relied on the statistical properties of language, on the frequency of letters and on the patterns of words. Rejewski used group theory, the mathematics of permutations, to analyse the structure of the Enigma’s encipherment. He realised that the machine’s behaviour could be described in mathematical terms, and that the daily settings could be deduced from the patterns in the intercepted messages.
This mathematical approach was the key to breaking Enigma, and it marked the beginning of modern cryptology.
4. Breaking Enigma in 1932
The Intelligence from France
Rejewski’s breakthrough was made possible by intelligence provided by the French. In 1931 a German employee of the Cipher Office in Berlin, Hans-Thilo Schmidt, sold documents about Enigma to the French intelligence service. The French passed copies of the documents to the Poles, and they included the operating instructions for the machine and the daily keys for two months in 1932. The documents did not include the internal wiring of the rotors, which was the most closely guarded secret, but they gave Rejewski enough information to begin his work.
He used the documents to confirm his mathematical analysis, and he set out to reconstruct the wiring.
Reconstructing the Wiring
Rejewski’s reconstruction of the Enigma’s wiring was a feat of mathematical deduction. He analysed the intercepted messages, looking for patterns that would reveal the structure of the machine. He used the theory of permutations to work out the connections inside the rotors, and he tested his hypotheses against the intercepted traffic. By December 1932 he had reconstructed the wiring of the rotors and the reflector, and he had built a working model of the Enigma.
It was the first time that anyone had broken the machine by mathematical analysis, and it was a triumph of pure reason. The Polish Cipher Bureau now had a machine that could read German messages, provided that the daily settings could be determined.
The First Decrypts
Once the wiring was known, Rejewski and his colleagues set out to determine the daily settings. They developed a method based on the analysis of the message indicators, the three letters at the start of each message that indicated the rotor settings for that message. By analysing the patterns in the indicators, they could deduce the rotor order and the ring settings, and then they could read the messages. By early 1933 the Poles were reading German Enigma traffic regularly, a remarkable achievement that gave Poland a valuable source of intelligence about German military plans.
The success was kept secret, and the British and French were not told the full details until 1939.
5. The Polish Cipher Bureau 1933–1939
The Cyclometer and the Bomb
As the Germans improved the security of Enigma, adding more rotors and changing the procedures, the Poles developed new methods to keep pace. Rejewski invented the cyclometer, a device that used the mathematical properties of the Enigma’s permutations to determine the rotor settings. He also invented, with his colleagues, the cryptologic bomb, or bomba, a machine that tested all possible rotor settings automatically and found the correct one. The bomb, built in 1938, was the first machine designed to break a cipher automatically, and it was a precursor of the British Bombe developed at Bletchley Park.

Henryk Zygalski developed the perforated sheets method, which used sheets of paper with holes punched in them to determine the settings. Together, these methods allowed the Poles to continue reading Enigma traffic until late 1938, when the Germans changed their procedures and the Polish methods ceased to work.

The Work of Rozycki and Zygalski
Rejewski did not work alone. His colleagues, Jerzy Rozycki and Henryk Zygalski, were also brilliant mathematicians, and they contributed essential ideas to the Polish effort. Rozycki developed the clock method for determining the rotor settings, and Zygalski developed the perforated sheets. The three men worked closely together, sharing ideas and testing each other’s hypotheses.

Their collaboration was a model of teamwork, and it was essential to the success of the Polish effort. Rozycki was killed in 1942 when the ship on which he was travelling was sunk, and Zygalski survived the war and emigrated to Britain. Rejewski’s own contribution was the most fundamental, but he always credited his colleagues.

The German Changes of 1938
In December 1938 the Germans changed the Enigma procedures, increasing the number of rotors from three to five and changing the way the message indicators were enciphered. The Polish methods, which depended on the old procedures, no longer worked, and the Poles were unable to read German traffic for several months. They worked frantically to develop new methods, but they lacked the resources to build the dozens of bombs that would have been needed to cope with the increased number of rotors. It was clear that Poland alone could not continue to break Enigma, and that the work would have to be shared with Britain and France.




6. The Gift to Britain and France
The Meeting at Pyry
In July 1939, as war with Germany became imminent, the Polish Cipher Bureau invited British and French intelligence officers to a meeting at Pyry, a forest near Warsaw where the Bureau had its headquarters. At the meeting, on 25–26 July 1939, the Poles revealed the full extent of their work on Enigma. They handed over two reconstructed Enigma machines, one to the British and one to the French, together with the details of Rejewski’s methods, the designs for the bomb, and the perforated sheets. The British officers, Alastair Denniston and Dilly Knox, and the French officer, Gustave Bertrand, were astonished by what they were shown.
The gift saved the British years of work, and it allowed Bletchley Park to begin reading Enigma traffic within months of the outbreak of war.
The Significance of the Gift
The significance of the Polish gift cannot be overstated. Without it, the British would have had to start from scratch, and it is unlikely that they would have been able to read Enigma traffic in time to influence the course of the war. The Polish methods provided the foundation on which the British built, and the British Bombe, developed by Alan Turing and Gordon Welchman, was a direct descendant of Rejewski’s bomb. The intelligence obtained from Enigma, codenamed Ultra, was one of the most important sources of Allied intelligence, and it contributed to victories in the Battle of the Atlantic, in North Africa, and in Normandy.
Rejewski’s work, and the Polish decision to share it, changed the course of the war.
Flight from Poland
When Germany invaded Poland on 1 September 1939, Rejewski and his colleagues fled eastwards, and then, via Romania, to France, where they continued their work for the French intelligence service. They worked at a station near Paris, and then, after the fall of France in 1940, they fled to the south of France, where they continued to work in secret. In 1942 Rejewski and Zygalski attempted to escape to Britain via Spain, but they were arrested by the Spanish police and imprisoned for several months. They were eventually released and reached Britain in 1943, where they worked at a Polish signals unit, but they were not invited to join Bletchley Park, and their work was not recognised.
7. Assessment
A Founder of Modern Cryptology
Rejewski’s achievement was one of the greatest in the history of codebreaking, and it marked the beginning of modern cryptology. He was the first to apply advanced mathematics to the breaking of a machine cipher, and his methods laid the foundation for the computer-based codebreaking of the Second World War and beyond. His work on Enigma was a triumph of pure mathematics, and it demonstrated the power of mathematical analysis in intelligence. He is now recognised as one of the founders of modern cryptology, alongside Alan Turing and others, and his contribution is taught in courses on the history of computing and cryptography.
Why He Was Forgotten
Rejewski was forgotten for many years because the story of Enigma was kept secret. The British did not declassify the story of Bletchley Park until the 1970s, and when they did, the Polish contribution was initially overlooked. The British account of the breaking of Enigma focused on Turing and Bletchley Park, and it did not mention the Polish work that had made Bletchley Park possible. It was only when Polish historians and former codebreakers began to tell the story that Rejewski’s contribution was recognised.
In 1973 Rejewski himself published an account of his work, and in the years that followed, his achievement was acknowledged in Poland, Britain and the United States.
Rejewski and Turing
Rejewski and Turing never met, but their work was closely linked. Turing built on Rejewski’s methods, and the British Bombe was an improved version of the Polish bomb. Turing’s genius lay in his ability to generalise Rejewski’s methods and to apply them to the more complex Enigma procedures of the war years. Rejewski’s genius lay in his original breakthrough, in his use of mathematics to reconstruct a machine that he had never seen.
Both men were essential to the Allied victory, and both were unrecognised in their lifetimes. Turing died in 1954, and Rejewski died in 1980, and it was only after their deaths that their contributions were fully acknowledged.
8. Later Life
Return to Poland
After the war, Rejewski returned to Poland in 1946, where he found a country under Communist rule and a society that had little interest in his wartime work. He settled in Bydgoszcz, where he worked as an accountant, a job that was far below his abilities but that provided a living. He did not speak about his work on Enigma, partly because it was still secret and partly because there was no one to tell. He lived quietly, with his wife Irena and their children, and he was largely forgotten by the outside world.
It was a sad end to a brilliant career, and it reflected the fate of many Polish veterans who returned to a country that had been transformed by the war.
Recognition in the 1970s
In the 1970s, when the story of Bletchley Park was declassified, Rejewski’s contribution began to be recognised. He was invited to give lectures, and he published his account of the breaking of Enigma. He received honours from Poland, including the Order of Polonia Restituta, and he was recognised in Britain and the United States. He died in Warsaw on 13 February 1980, aged 74, and he was buried in Warsaw.
His death was noted in Poland and in the West, and his reputation has grown steadily since then. Today he is recognised as a national hero in Poland and as one of the great codebreakers of the Second World War.
Family and Personal Life
Rejewski married Irena Lewandowska in 1934, and they had two children, a son and a daughter. He was a quiet, modest man, who did not seek publicity and who was content to work behind the scenes. His colleagues remembered him as a brilliant mathematician and a kind and generous man, who was always willing to help others. His personal life was unremarkable, but his professional life was extraordinary, and his achievement in breaking Enigma remains one of the great feats of the twentieth century.
9. Legacy
The Polish Contribution to Victory
Rejewski’s legacy is the Polish contribution to the Allied victory in the Second World War. His work on Enigma, and the Polish decision to share it with Britain and France, changed the course of the war and saved countless lives. The intelligence obtained from Enigma, known as Ultra, was one of the most important sources of Allied intelligence, and it contributed to victories in every theatre of the war. Without Rejewski’s breakthrough, it is unlikely that the Allies would have been able to read German communications as early as they did, and the war might have lasted longer and cost more lives.
Memory in Poland and the World
In Poland, Rejewski is remembered as a national hero, and his name is given to streets, schools and institutions. A monument to Rejewski, Rozycki and Zygalski stands in Poznan, and a museum in Bydgoszcz tells the story of their work. In Britain, his contribution is recognised at Bletchley Park, where the Polish work is acknowledged in the exhibits. In the United States, he is recognised as one of the founders of modern cryptology.
His story has been told in books, films and documentaries, and it continues to inspire new generations of mathematicians and cryptologists.
Lessons for Cryptology
The study of Rejewski offers lessons for cryptology and for the history of computing. His use of mathematics to break a machine cipher was a breakthrough that changed the nature of codebreaking, and his methods laid the foundation for the computer-based cryptography of the modern world. His career also illustrates the importance of international cooperation in intelligence, and the value of sharing knowledge between allies. These lessons remain relevant, and they ensure that Rejewski’s work continues to be studied.
10. FAQ
Who was Marian Rejewski? He was a Polish mathematician and cryptologist who broke the German Enigma code in December 1932, working with Jerzy Rozycki and Henryk Zygalski at the Polish Cipher Bureau.
How did Rejewski break Enigma? He used mathematics, in particular the theory of permutations, to reconstruct the internal wiring of the Enigma machine, and he developed methods to determine the daily settings from intercepted messages. He was helped by documents provided by French intelligence.
What did Poland give to Britain and France in 1939? In July 1939, at a meeting at Pyry near Warsaw, the Poles handed over reconstructed Enigma machines and the details of Rejewski’s methods to British and French intelligence, weeks before the German invasion of Poland.
Did Bletchley Park build on Polish work? Yes. The British Bombe, developed by Alan Turing and Gordon Welchman, was a development of Rejewski’s cryptologic bomb, and Bletchley Park used Polish methods as the foundation for its work on Enigma.
Why was Rejewski forgotten for so long? The story of Enigma was kept secret until the 1970s, and the early British accounts focused on Bletchley Park and did not mention the Polish contribution. Rejewski’s achievement was recognised only after he published his own account in 1973.
What happened to Rejewski after the war? He returned to Poland in 1946 and worked as an accountant in Bydgoszcz. His contribution was recognised in the 1970s, and he died in Warsaw in 1980.
11. Sources
- Marian Rejewski, memoirs and accounts of the breaking of Enigma (1973 and later).
- Wladyslaw Kozaczuk, Enigma: How the German Machine Cipher Was Broken, and How It Was Read by the Allies in World War Two.
- David Kahn, Seizing the Enigma.
- Hugh Sebag-Montefiore, Enigma: The Battle for the Code.
- Wikipedia, Marian Rejewski.