The line of cars stretches for blocks. Pumps run dry. Newspapers warn of a great “gas crunch.” The president urges calm. Panicked motorists turn on one another.

Hackers? Ransomware? Cybercrime? Nah. This was the 1970s, an age of 12 miles per gallon and decidedly low-tech fuel shortage culprits: geopolitics, OPEC, the Iranian Revolution.

If the service station situation seems bad now, with a worsening fuel shortage in the Southeast, it’s worth revisiting the pair of gasoline crises that bookended the “Me Decade” and incited an alarm that one historian said was worse than the pandemic.

To fully grasp the impact of the 1973 and 1979 shortages, contemporary readers must journey into that era’s psyche. Meg Jacobs, a Princeton University historian who chronicled the tumultuous time, described the post-World War II scene as a golden age of highways, shopping malls and suburban sprawl. An energy emergency was not in the cards.

“The notion that Americans were going run out of gas was both new and completely terrifying. It came on so suddenly,” said Jacobs, author of “Panic at the Pump: The Energy Crisis and The Transformation of American Politics in the 1970s.” “At the same time, our cars were the size of living rooms.”

Not only were cars large, but they also played on outsize role in Americans’ self-conception, she said.

“Everybody was completely dependent and in love with their cars as a symbol of American triumph and freedom,” Jacobs said.

Then, the “oil shocks.” First, in 1973, when Arab oil exporters imposed an embargo on the United States and many of its allies in retaliation for American support of Israel during the Yom Kippur War. An aide to President Richard M. Nixon called it “an energy Pearl Harbor.” Then, after Iran ousted its shah in 1979, the country’s oil production dipped and OPEC, the Organization of the Petroleum Exporting Countries, raised prices, triggering another shortage.

Both times, the reaction was similar. “Americans freaked out,” Jacobs said. “And their response was to go line up at the pumps. … This was more than just a mad rush on toilet paper. Americans understood this as the lifeline of the country.”

This wasn’t just an empty tank; it was a blow to a treasured star-spangled mythos.

“The people out there are getting frantic,” observed the protagonist in John Updike’s novel of the period, “Rabbit is Rich,” “they know the great American ride is ending.”

Gas prices surged. Federal officials reduced the national speed limit to 55 mph. Gas stations flew a stoplight-themed array of flags to alert drivers about their fuel supplies. Red meant they were all out, yellow meant running low and green signaled they were stocked. One man, judging the system to be “un-American,” burned the flags with acid.

Some drivers ventured out before sunrise to fill up. States instituted a rationing system based on car license plates — if you had an even number, you could only get gas on an even-numbered day. At least one man was arrested for pulling a gun on a gas station attendant who refused to fill his car because it was the wrong day.

Cars encircled city blocks as people waited more than an hour for their turn at the pump. A Washington Post headline on the front page of the June 9, 1979, newspaper announced: “Gas Lines Long, Tempers Short in Panic Buying.” The article noted “occasional fistfights” and described one kerfuffle along the District’s Connecticut Avenue, where two motorists cut in line at a BP station.

“According to witnesses, one of the culprits pulled in front of a ‘very heavyset man’ who angrily jumped from his car, opened the door of the line-jumper ‘and began to curse royally,’ ” Post reporters wrote.

“Only the driver’s white hair may have saved him from the violence,” a bystander told them.

The news coverage was ceaseless and all-caps — in format and tone. Charles B. Seib, The Post’s ombudsman at the time, dubbed it “our all consuming concern.”

The phrase “gas shortage” appeared in the pages of The Post more than 1,300 times from 1973 through 1979. Correspondents covered the people waiting in line — like D.C. Council Chair John Nevius, who was “just like the rest of us” — and those who skipped ahead, such as construction companies and car rental services.

They observed the wider economic fallout, such as the “beach cottages unrented in Ocean City” and the “ice cream cones not purchased at Montgomery Mall.” And they followed the crisis to unusual locales: One therapist reported that “almost every patient” was voicing “frustration, anger and fantasies” about gasoline.

“Most of what I hear are fantasies of what they’d like to do to a person who cut in a gas line,” he said. “They’d like to explode on [such] a person.”

Turns out, Jacobs said, many Americans wound up exploding on their political leaders as well.

The 1973 embargo came just days before the infamous “Saturday Night Massacre,” when Nixon purged his Justice Department, and oil issues would play an often overlooked part in his downfall.

“Watergate is what doomed Richard M. Nixon,” Jacobs said, “but the energy crisis was really the nail in the coffin.”

The administration had internal polling that told them the public was actually more upset about the gas shortage than the embattled president’s political scandal, she said. In the end, he didn’t have a good answer for either one.

Then, Jimmy Carter ran for office promising honesty and an end to the oil crisis. Once elected, he created the Energy Department, hoping to reduce dependence on foreign oil and fossil fuels. He attached solar panels to the White House roof and chastised Americans for their “self-indulgence and consumption.” Yet, another shock came.

“He was promising a solution only to then fail miserably in the eyes of the public,” Jacobs said.

Bumper stickers reading “Carter, Kiss My Gas” began appearing on the cars of disgruntled drivers. And he lost reelection.

Both panics helped fundamentally reshape American politics, Jacobs argued.

“If Vietnam and Watergate taught Americans to mistrust their leaders, the energy crisis taught them that government didn’t work,” she said.

All this raises an obvious question: How does what happened then compare to now? The country is witnessing the fallout of a cyberattack that shut down a major U.S. pipeline and has led to fuel shortages in the Southeast.

But, Jacobs said, “in real terms, it is not as bad and this will clear up.”

However, she added, forgive the nation for being on edge. Consider the coronavirus pandemic, which has had people cooped up for more than a year, eschewing planes and eager to road trip, either to see loved ones or just to get away.

“This is not like the 1970s, but we have lived through an unprecedented scarring event that makes the need to travel greater than ever,” Jacobs said.

And today is different from a half-century ago for another reason: President Biden — whose first year in the Senate coincided with the 1973 shock — “is trying to enact a big change in how we organize our energy lives,” Jacobs said, one that seeks to pair climate and economic policy.

It’s an optimistic vision, she said, one that believes “in the power of government to fix our problems.” In other words, one that seeks to overcome the failings of the 1970s.

But just like the shortages, optimism has a long history here. Writing a letter to The Post’s editor in 1979, Michael R. Hoyt of Silver Spring, Md., hoped that the long lines and low tanks “may turn out to be a good thing.”

“Perhaps during this crisis, we will all be forced to stay closer to home and get to know our family and friends better,” he wrote. “Perhaps it is an opportunity for neighbors to become communities once again. If this happens, then indeed the gas shortage will be a blessing.”

Read more: