HANDOUT IMAGE: Kazimierz Piechowski in 2011. 'We just planned that I would play the role of an SS officer so well that the guards would believe me.' (Christian Sinibaldi for the Guardian)

Kazimierz Piechowski, a teenage member of the Polish Boy Scouts who became one of the first prisoners at Auschwitz and went on to lead a daring escape from the Nazi death camp, helping to steal the commandant's car and impersonating an irate SS officer, died Dec. 15 in Gdansk, Poland. He was 98.

The Institute of National Remembrance, created by the Polish government to investigate crimes committed during the Nazi occupation and the later communist rule, announced the death but did not provide additional information.

Mr. Piechowski was 19 when German forces swept through Poland and began killing priests, intellectuals and members of the country's Scouting organization in September 1939, fearing — correctly — that the Scouts would help form the seeds of the country's underground resistance.

He soon struck out on a circuitous route for France, aiming to join the displaced Polish army. But he was captured near the Hungarian border, imprisoned and sent on June 20, 1940, to Auschwitz, which had been opened a month earlier by the SS as a concentration camp for criminals and political prisoners.

Mr. Piechowski, who went by Kazik, acquired a new identity — Prisoner 918 — and under the threat of death took on a new job: working more than 12 hours a day to expand the forced-labor camp into the core of an elaborate killing center. About 1.1 million people, most of them Jews, died at Auschwitz before the complex was liberated in 1945, according to the Auschwitz-Birkenau Memorial and Museum.

While many were killed in gas chambers disguised as shower installations, some political prisoners, including women and children, were stripped naked and shot in the back of the head outside a "death wall." For six weeks, Mr. Piechowski later said, he was tasked with carting bodies from the wall to a crematorium.

Murder was often seen as sport, or even a means to a vacation. "When an SS man was bored, they would take off a prisoner's cap and throw it away," Mr. Piechowski told Britain's Guardian newspaper in 2011. "They would then order the prisoner to fetch it. As the prisoner was running, the officer would shoot them. Then they would claim the prisoner was trying to escape and get three days off for foiling it."

Some inmates were beaten to death with batons. Many starved. Only a few — 196, according to the Auschwitz museum — successfully escaped to freedom.

Mr. Piechowski enacted his own unlikely escape plan in 1942, two years to the day after he arrived at Auschwitz. He had seen plenty of escapes halted by the electrified barbed wire and watchtowers surrounding the camp, and he knew that 10 people were forced to starve in reprisal for each person who escaped.

But the calculus changed abruptly when a friend of Mr. Piechowski's, Eugeniusz Bendera, learned that he was scheduled to be killed and suggested they flee the camp in an SS car. Bendera, a mechanic, had access to the vehicle. Mr. Piechowski, who was working in the warehouse, knew where to find a stash of uniforms and weapons that would allow them to disguise themselves as SS officers.

In an effort to spare his cellmates from retribution, Mr. Piechowski devised a plan in which he, Bendera and two others — Stanislaw Gustaw Jaster, a former Scout, and Jozef Lempart, a priest — would leave the main camp area by pretending to be part of a four-person work unit. If the entire unit disappeared, Mr. Piechowski figured, their block supervisor probably would be held wholly responsible.

1 of 66 Full Screen Autoplay Close Skip Ad × Notable deaths in 2017 View Photos Remembering those who died in 2017. Caption Remembering those who died in 2017. Katherine Frey Buy Photo Wait 1 second to continue.

If they were caught, the men agreed, they would shoot themselves.

On a quiet Saturday morning, they pushed a garbage cart through the first camp gate, under a sign reading "Arbeit Macht Frei" ("Work Sets You Free"). Three of the men scurried through a coal hatch inside the warehouse, and Mr. Piechowski led them to a room where they nabbed SS uniforms, four machine guns and eight grenades, according to historian Laurence Rees's 2005 book "Auschwitz: A New History."

They stepped inside a speedy Steyr 220 — the fastest car on the base, belonging to commandant Rudolf Höss — and drove toward the camp's main gate, greeting SS officers with a "Heil Hitler!" along the way, Mr. Piechowski later said. They had good luck pushing their garbage cart and taking the uniforms out of the warehouse, where SS officers failed to identify them, but at the camp's outermost gate, they were met with a closed barrier.

"Wake up, you buggers!" Mr. Piechowski yelled in German to the men manning the gate, he later told the Guardian. "Open up or I'll open you up!"

The gate opened, and the escapees drove to freedom.

Concentration camp commandants were warned to watch against future escapes, according to Rees's account, but at Auschwitz only Mr. Piechowski's kapo — the prisoner who helped supervise his unit — was punished.

Still, the episode seemed to haunt each man for years. Jaster, working with resistance leader Witold Pilecki, delivered a report on Auschwitz's horrific conditions to the Polish underground, according to the Auschwitz museum, but his parents were sent to Nazi death camps and died there in reprisal for his escape.

Mr. Piechowski, too, worked closely with the underground movement known as the Home Army. He was born in the northern Polish village of Rajkowy on Oct. 3, 1919, and grew up in nearby Tczew, where his father worked in the railroad industry and where Mr. Piechowski returned before serving with the resistance.

When the communists consolidated power in Poland after the war, Mr. Piechowski was sentenced to 10 years in prison as an enemy of the state, according to the London-based Mail on Sunday newspaper. He was released after seven years. He later worked as an engineer in the Gdansk shipyard.

Mr. Piechowski returned to Auschwitz with his wife, Iga, some 30 years after his escape. A complete list of survivors was not immediately available.

He spent years speaking with student groups and others about the Holocaust and his experiences at Auschwitz, describing nightmares of guard dogs, nerve problems and a sense of duty that led him to recount his memories despite the pain they caused.

"I am a Scout, so I have to do my duty — and be cheerful and merry," he told the Guardian. "And I will be a Scout to the end of my life."