The Eagle was seconds from landing on the moon, alarms blaring, when Margaret Hamilton’s calm under pressure saved the mission. At MIT, miles from mission control, she listened intently as Apollo 11’s computers flashed warning lights. She knew the problem. She had seen it before — in a simulation, caused by a radar switch left on. And because she had trained the flight controllers to trust the software, the landing continued. Moments later, Neil Armstrong’s voice crackled across the world: “The Eagle has landed.”

In the 1960s, NASA’s space program was dominated by white men. Women, especially women in technical roles, were rare. Margaret Hamilton wasn’t just present—she was essential. As director of software engineering at MIT’s Instrumentation Laboratory, she led the team that built the onboard flight software for Apollo. Her team created the Apollo Guidance Computer (AGC), the first computer to use silicon-integrated circuits—the foundation of every smartphone, laptop, and modern device we use today.

Two AGCs flew on each mission: one in the command module orbiting the moon, another in the lunar module that touched down. The astronauts used a keypad called DSKY to communicate with the computer. It was revolutionary. No longer did they need joysticks to steer—AGC handled navigation automatically, with precision no human pilot could match.

Hamilton’s foresight didn’t stop there. One day, her young daughter Lauren accidentally crashed the command module simulator by activating a program called P01 during a test. Instead of dismissing it, Hamilton insisted the team fix the flaw. When the same error happened during Apollo 8’s flight, the software didn’t fail. It recovered. That fix likely prevented disaster during Apollo 11.

She was born in Paoli, Indiana, in 1936, and studied mathematics at Earlham College. In 1965, she joined MIT’s Instrumentation Lab, becoming the first programmer for Apollo and the first woman on the project. Within three years, she led a team of about 100 engineers. She faced sexism, but found respect among her peers. “Dedication and commitment were a given,” she said. “We had to find a way, and we did. There was no choice but to be pioneers.”

Today, her legacy lives in every line of code that guides spacecraft, planes, and phones. She didn’t just help land humans on the moon—she helped launch the software age. And as more women enter tech, her story reminds us that progress isn’t just about innovation, but who gets to lead it.