On April 26, 2007, NASA decided to bring Williams back to Earth on the STS-117 mission aboard "Atlantis". Although she did not break the U.S. single spaceflight record that was recently broken by former crew member Commander Michael López-Alegría, she did break the record for longest single spaceflight by a woman. Williams served as a mission specialist and returned to Earth on June 22, 2007, at the end of the STS-117 mission. Poor weather at the Kennedy Space Center in Cape Canaveral forced mission managers to skip three landing attempts there over a 24-hour period. They then diverted "Atlantis" to Edwards Air Force Base in California, where the shuttle touched down at 3:49 p.m. EDT, returning Williams home after a 192-day stay in space.