NASA / Reuters

David Wolf won’t mind waiting in a long line to cast his ballot today.

In 1997, the retired NASA astronaut voted in a local Texas election while he was more than 200 miles above Earth, on the Russian space station Mir. At the time, humans were still trying to figure out how to stay alive in low-Earth orbit; earlier that year, a fire had erupted inside the Mir during a routine procedure, and a cargo probe collided with station when it tried to dock, causing significant damage. Communications from mission control could sometimes take hours to reach the station. There was little time for anything but work.

Wolf doesn’t recall what was on the ballot that year, but he remembers how moved he felt.

“I voted alone up in space, very alone, the only English speaker up there, and it was nice to have an English ballot, something from America,” Wolf told me recently. “It made me feel closer to the Earth and like the people of earth actually cared about me up there.”

Wolf became the first American to vote from space, thanks to legislation in Texas, where most astronauts live, that was signed into law in 1997. Nearly 20 years later, the process for voting from orbit remains the same—and it’s pretty easy. Mission control sends astronauts an encrypted email with an absentee ballot inside. Astronauts fill it out and email it back to Earth, where it reaches a county clerk, who opens the file and writes in the selections on a paper ballot. Only that clerk knows how an astronaut voted. Shane Kimbrough, the only American in space right now, has already voted from the International Space Station (ISS).

Wolf is glad to do it on Earth this year.

“The lesson most astronauts learn is how wonderful something is when you step away and look back on it,” he said. “Now I appreciate my backyard like a Caribbean vacation.”

The process for voting from space emerged after John Blaha, who launched on the Shuttle to Mir in September 1996, missed out on voting in the presidential contest between Bill Clinton and Bob Dole. When Texas State Senator Mike Jackson heard about this, he went to NASA and told them he wanted to introduce a bill. Jackson had won his election in 1989 by seven votes out of 26,000, “so I was all in favor of letting more people vote,” he told me.

Other legislators in both parties quickly signed on to the legislation. “The initial reaction was, ‘You want to do what?’” said Jackson, who is now retired. “Then they were saying, ‘Why didn’t we think of this before?’”

There was little reason to before Blaha launched. In the early 1990s, shuttle missions lasted less than two weeks. Crews launched into low-Earth orbit, conducted experiments and spacewalks, and came back. But in 1995, American astronauts began visiting the Mir and staying for nearly six months. The United States entered the era of long-duration spaceflight, and NASA had to figure out how to keep astronauts healthy and happy in an extreme environment. Some Mir cosmonauts, the Russians had learned, had struggled with depression and anxiety because of the isolation of the space station. So NASA brought in a group of psychologists to help develop support systems for its own astronauts on Mir.

Wolf said he watched movies on Mir to help him feel connected to Earth during his five-month stay; Apollo 13 brought him to tears, while Alien felt surreal. Casting a ballot, he said, gave him similar comfort.

“After a few months in space and only hearing crackling voices on a radio, you lose your sense of attachment to Earth, and doing things like watching movies or voting, you feel much more intensely about them than when you do it as a routine act on Earth,” he said.

Technology has since helped erase the distance between Earth and orbiting astronauts, who now regularly spend six months on the ISS, which succeeded Mir. In 2004, Leroy Chiao not only voted in the presidential election from the station, he also beamed down a public service announcement encouraging Americans to go to the polls. In 2010, ISS astronauts got personal access to the internet. They can email, tweet, Instagram, and buy stuff on Amazon. And when they vote, their experience is not quite like the one Wolf had—in a dank, aging space station, with limited communication with family and friends.

Perhaps the next astronauts who will experience voting as Wolf did will be the ones NASA sends to Mars. Wolf pointed to the Mars explorer most people are familiar with: Mark Watney, the fictional character in The Martian. Watney tried to grow potatoes on Mars because he was stranded there and had to survive, but the act was a source of comfort, too, Wolf said.

“These connections are exceptionally powerful and effective at making a person feel like part of a civilization somewhere,” he said.

We want to hear what you think about this article. Submit a letter to the editor or write to letters@theatlantic.com.