BERLIN — Helmut Schmidt, the chancellor who guided West Germany through economic turbulence and Cold War tensions, died Tuesday. He was 96.

German weekly Die Zeit, of which Schmidt was a co-publisher, confirmed in a statement that he died at his house in Hamburg. Schmidt's office confirmed the former chancellor's death to NBC News.

Helmut Schmidt is shown on March 13, 2014. MAURIZIO GAMBARINI / EPA

Schmidt, a center-left Social Democrat, led West Germany from 1974 to 1982. He was elected chancellor by lawmakers in May 1974 after the resignation of fellow Social Democrat Willy Brandt after a top aide to Brandt was unmasked as an East German agent.

The new leader brought a sometimes abrasive self-confidence and his experience as West Germany's defense, finance and economy ministers to the job, which he took during the economic downturn that followed the 1973 oil crisis.

Schmidt's chancellorship coincided with a tense period in the Cold War, including the Soviet Union's 1979 invasion of Afghanistan. He went along the following year with the U.S.-led boycott of the Moscow Olympics, although he later said that it "brought nothing."

Schmidt later said he had disputes with the United States under President Jimmy Carter over financial and defense issues at the time and concluded "that we Germans could not afford an extra conflict with America," West Germany's protector against the Soviets.

Amid efforts to ward off a global recession, Schmidt was among the movers behind the first economic summit of leading industrial powers at Rambouillet, France, in 1975, which later turned into the annual Group of Seven meeting.

He and then-French President Valery Giscard d'Estaing also played leading roles organizing the European Monetary System, which ultimately paved the way for the common European currency, the euro.

Born Dec. 23, 1918, the son of a half-Jewish school teacher in the northern city of Hamburg, Schmidt joined the Hitler Youth when his rowing team was included in the Nazi youth organization, but was suspended at age 17 — "probably because my griping got on their nerves."

Drafted as a soldier during World War II, Schmidt's unit was deployed in the Soviet Union in 1941. He was sent to the western front at the end of the war and taken as prisoner by British forces in April 1945. He was released that August.

Schmidt later said that, as a young soldier, he had recognized the Nazi regime's lunacy but not its criminal nature at first.

"Schmidt the Lip"

Schmidt entered West Germany's parliament in 1953, where he earned the nickname "Schmidt the Lip," a tribute to his sharp-tongued debating skills. He made his name back in his native Hamburg with his decisive 1962 management of severe flooding.

As chancellor, Schmidt's confidence served him well in facing down the homegrown terrorism of the Red Army Faction, which grew out of the leftist student movement in the 1960s. In a 1977 campaign of violence that became known as the "German Autumn," the group murdered, among others, West Germany's chief federal prosecutor and the chief executive of Dresdner Bank.

Schmidt stood firm, refusing to release jailed Red Army Faction leaders even after the group kidnapped Hanns-Martin Schleyer, the head of the country's industry federation.

"The state must react with all the necessary toughness," he declared.

While Schleyer was being held in 1977, hijackers commandeered a Lufthansa plane to the Somali capital, Mogadishu, to force the release of the Red Army Faction leaders. Schmidt ordered West German anti-terrorist commandos to storm the jet, successfully rescuing 86 hostages. Shortly afterward, three of the terrorist group's leaders killed themselves in prison and Schleyer was found murdered.

Schmidt later said "I was prepared to resign" if the Mogadishu operation had gone wrong. Although convinced he had taken the right action, he also conceded he felt guilty about Schleyer's slaying.

Caught Between Two Superpowers

It was not easy for Schmidt being between the world's two superpowers — the United States and the Soviet Union, and his support for NATO's 1979 "double track" deploy-and-negotiate move to counter the deployments of Soviet SS-20 missiles proved divisive at home.

NATO gave the go-ahead for the modernization of its nuclear force in West Germany and elsewhere in western Europe by deploying cruise and Pershing 2 missiles while, at the same time, seeking a joint limitation of the nuclear buildup through negotiations with the Soviet Union.

Backing the NATO policy helped estrange Schmidt from his own party. Missile deployment in West Germany was fiercely opposed by many younger, more left-wing Social Democrats, and in 1983, an upstart leftist rival, the Greens, entered parliament for the first time.

Schmidt's chancellorship ended with his ouster in a parliamentary vote in October 1982, when his party's coalition partner, the pro-business Free Democrats, switched its allegiance to Helmut Kohl's conservative Christian Democrats due to disputes over economic policy and the squabbling within Schmidt's party.

Schmidt did not run for chancellor again, citing health concerns.

No stranger to controversy

He had been fitted with a heart pacemaker and also suffered from a thyroid condition. In August 2002, he underwent an emergency bypass operation after suffering a heart attack. Two years later, he had cataract surgery.

After stepping down as a lawmaker in 1987, Schmidt devoted himself to working as co-publisher of the weekly newspaper Die Zeit.

Schmidt continued to weigh in on Germany's political debates, rarely shying away from controversy — which gave him a reputation for plain speaking that won him favorable comparisons with other German politicians.

Schmidt argued in a 2002 book that Germany had brought in too many immigrants in an idealistic attempt to overcome its Nazi past, saying his countrymen were "for the most part xenophobic deep down."

Schmidt and his wife Loki had one daughter, Susanne. Their first child, a son named Helmut Walter, died in 1945 when he was only a few months old. Loki Schmidt died at age 91 in 2010.