(CNN)Michael Collins, the NASA astronaut who was the command module pilot for the Apollo 11 mission to the moon, has died at age 90 after battling cancer.
His family shared the news Wednesday after his passing on Collins' Facebook page.
"We regret to share that our beloved father and grandfather passed away today, after a valiant battle with cancer," the statement read.
"He spent his final days peacefully, with his family by his side. Mike always faced the challenges of life with grace and humility, and faced this, his final challenge, in the same way. We will miss him terribly. Yet we also know how lucky Mike felt to have lived the life he did. We will honor his wish for us to celebrate, not mourn, that life. Please join us in fondly and joyfully remembering his sharp wit, his quiet sense of purpose, and his wise perspective, gained both from looking back at Earth from the vantage of space and gazing across calm waters from the deck of his fishing boat. Our family asks for privacy during this difficult time. Details on services will be forthcoming."
This astronaut portrait of Collins was taken on July 1, 1969, shortly before the Apollo 11 flight.
NASA, where Collins spent seven years of his career as an astronaut, also released a statement about Collins' passing.
"Today the nation lost a true pioneer and lifelong advocate for exploration in astronaut Michael Collins," said acting NASA Administrator Steve Jurczyk in a statement. "As pilot of the Apollo 11 command module -- some called him 'the loneliest man in history' -- while his colleagues walked on the Moon for the first time, he helped our nation achieve a defining milestone. He also distinguished himself in the Gemini Program and as an Air Force pilot.
NASA's 'loneliest man'? Far from it: Astronaut Michael Collins on the 'cathedral' of Apollo 11
"Michael remained a tireless promoter of space. 'Exploration is not a choice, really, it's an imperative,' he said. Intensely thoughtful about his experience in orbit, he added, 'What would be worth recording is what kind of civilization we Earthlings created and whether or not we ventured out into other parts of the galaxy.'
"His own signature accomplishments, his writings about his experiences, and his leadership of the National Air and Space Museum helped gain wide exposure for the work of all the men and women who have helped our nation push itself to greatness in aviation and space. There is no doubt he inspired a new generation of scientists, engineers, test pilots, and astronauts.
"NASA mourns the loss of this accomplished pilot and astronaut, a friend of all who seek to push the envelope of human potential. Whether his work was behind the scenes or on full view, his legacy will always be as one of the leaders who took America's first steps into the cosmos. And his spirit will go with us as we venture toward farther horizons."
The Gemini X prime crew was made up of astronauts John W. Young (left), command pilot, and Michael Collins, pilot.
Edwin "Buzz" Aldrin, former NASA astronaut and lunar module pilot of the Apollo 11 mission, shared his sadness at Collins' passing.
"Dear Mike, Wherever you have been or will be, you will always have the Fire to Carry us deftly to new heights and to the future. We will miss you. May you Rest In Peace. #Apollo11," Aldrin wrote on Facebook.
Collins was born in Italy, became an Air Force pilot, then an astronaut in the Gemini program. He was the third American to perform a spacewalk, according to NASA. Including the Apollo 11 mission, Collins logged 266 hours in space, NASA said.
In 2019, Collins sat down with CNN Chief Medical Correspondent Dr. Sanjay Gupta to reflect on the 50th anniversary of the historic Apollo 11 mission.
Collins reminisced about looking up a the sky as a child, seeing "the most marvelous things up there" and wanting to know more about them, he told Gupta. That's when he knew that he wanted to fly.
Becoming an astronautCollins came from a military family. His father and brother were US Army generals, and his uncle was the Army chief of staff. He decided to "sneak off" to the US Air Force instead.
In 1961, Collins was a student at the US Air Force Test Pilot School at Edwards Air Force Base in California. That year, President John F. Kennedy said that the United States would put a man on the moon by the end of the decade and return him safely to Earth, Collins remembered vividly.
Collins and about 80% of his peers were "gung-ho," he recalled. NASA and the idea of the Mercury and Gemini programs, which set up for the Apollo program, were attractive, and the space program seemed like a promotion. The other 20% would rather fly and test new airplanes for the Air Force rather than getting "locked up in a capsule and shot off like a round of ammunition," Collins said.
Collins, a fighter pilot for four years, graduated flight school at age 22. He "flunked out" the first time he applied to the space program. He says there are 15 or 20 reasons why he might have flunked, but he likes to tell the story of the famed Rorschach inkblots mishap during his psychiatric exam.
"I leafed through a whole series of them, and then the last one was a blank sheet of paper, pure white, 8 by 10," he said. " 'Here, so what do you see?' they asked. I say, 'well, of course that's eleven polar bears fornicating in a snowbank.' And I could see the examiner's eyes kind of tighten. He didn't think that was funny. He didn't like people making light of his card set. Anyway, for whatever reason, I flunked. The next year, (in the inkblot) I saw my mother and my father, and my father was slightly larger and more authoritarian but not too much more than my mother, and I passed."
The Apollo 11 astronauts quarantined after returning to Earth. Here's why
Collins was selected as part of the third class of astronauts in 1963. His first mission was Gemini 10. His second was Apollo 11.
The six years between 1963 and 1969 flew by. Collins and his fellow astronauts worked hard, rising early and neglecting breaks on the weekends. They rarely saw their families and flew from coast to coast, visiting facilities where parts of the spacecraft were being manufactured.
They attended classes to learn everything about the spacecraft they would be flying and spent countless hours in simulators that replicated their missions to conquer every possible error.
Michael Collins Fast Facts
Physical fitness was not one of the NASA requirements, Collins said. The astronauts had an initial thorough exam before they were accepted into the program, testing their senses and capabilities. But after that, physical fitness was up to the individual to maintain.
"We had an annual physical exam that we had to pass, and it was an extremely rigorous exam. They would assign two flight surgeons to one of us, and one would look in this ear, and one would look in that ear. If they didn't see each other, you passed," he joked. "That was the physical exam that NASA offered us, and they required us to really do whatever we felt like we should be doing in terms of our own conditioning."
At the time, one of the requirements to become an astronaut was graduation from an accredited test pilot school. Test pilots were used to mental stress and physical danger, so Collins believes that NASA was more focused on other aspects. The agency's priority was making sure that the astronauts could operate a complex machine that would be going a quarter of a million miles from Earth for the first time.
Apollo 11Collins learned that he would join Buzz Aldrin and Neil Armstrong on Apollo 11 during a call from Deke Slayton, whose résumé included World War II pilot, test pilot, one of the original Mercury Seven astronauts and NASA's first chief of the Astronaut Office and director of Flight Crew Operations.
He put the crews together and was "sort of one of those unsung behind-the-scenes heroes," Collins said. "He was a wonderful, wonderful boss."
Slayton called Collins and asked, "Hey, you still want to do this thing?"
"Oh, absolutely!" Collins replied. "You better believe!"
Kennedy's wish loomed large in Collins' mind. Then 39, he felt the astronauts carried the weight of the world.
He didn't talk about the dangers of spaceflight with his wife, Pat.
How NASA's Apollo space missions changed photographic history
"We talked about superficialities and maybe alluded to those serious difficulties that a space flight entails," Collins recalled. "We'd nibble all around the edges of the danger involved."
Launch day on July 16, 1969, arrived quickly.
The three astronauts got out of their vehicle at the base of a tower that went 365 feet into the air. An elevator took them up to their command module, Columbia. Everything had to be "all neat and apple pie" before they could board. Collins looked to his left and saw a clear ocean. On his right was "the most gigantic pile of complex machinery you've ever seen."
"And I can remember thinking 'ooh, I think I'd rather look at the simple one rather than that complicated one. Maybe that's too complicated for me over there.' "
The official crew photo for Apollo 11. From left to right are astronauts Neil A. Armstrong, Commander; Michael Collins, Command Module Pilot; and Edwin E. Aldrin Jr., Lunar Module Pilot.
The men knew that the chances of it failing somewhere along the line were relatively high, but they were optimistic about surviving, Collins said.
After that, the mission unfolded in a series of imperative events.
"I liken it to a daisy chain, long and very fragile daisy chain," Collins said. "It emanates from Cape Canaveral, and then it goes out into space and around the moon and circles it back in. And it's got all these links in it, and if one link fails, well, all the rest downstream are useless. So for eight days, to and from, there was always one thing coming up, the next big event which could ruin you, be the end of you. That was how it worked."
While Aldrin and Armstrong separated from Columbia in the lunar lander, the Eagle, to land on the moon, Collins kept circling the moon. Once Armstrong and Aldrin were finished, he would rendezvous and dock with the Eagle after it left the lunar surface. That maneuver was the one they had prepared for most during training on Earth. Collins had a 8-by-10 notebook with 18 scenarios around his neck. It went perfectly.
Collins was often called "the loneliest man" once he returned to Earth, but he didn't feel that way -- even when he lost contact with Mission Control during his flybys on the far side of the moon. While Armstrong and Aldrin were busy landing, setting up experiments and collecting samples from the lunar surface, Collins had to keep all of the subsystems running on Columbia by himself.
"It was a happy home. I liked Columbia," he said. "It reminded me, in a way, of almost like a church or a cathedral. It had the apse, the three couches, and then you went down into where the altar was. That was the guidance and navigation system. And it was laid out almost like a cathedral. And I had hot coffee. I had music I could play if I wanted to. I had people to talk to on the radio, sometimes too many people talking too much on the radio. So I enjoyed that interlude. Being by myself in a machine up in the air somewhere was not unknown to me, and so everything was working well within Columbia, and I enjoyed it."
When the three men were reunited after the docking, Collins wanted to celebrate with Aldrin and Armstrong. But they had mission items to tend to. The daisy chain wouldn't be complete until they landed safely on Earth.
"I remember I was going to grab Buzz by the shoulders and kiss him on the forehead, and then I decided, 'No, that's just not right.' So I don't know. I shook his hand or patted him or something. And Neil, I didn't even bother touching Neil when he came through. That was it. We didn't say 'oh, you have landed on another planet' or anything like that."
Although Collins did look for the little bit of cognac he thought they had stowed away, he never found it.
Apollo 11 astronauts Neil Armstrong, Buzz Aldrin and Michael Collins waving to crowds at a parade celebrating their return from the moon.
After the successful Apollo 11 flight, Collins saw another side of Armstrong as the three astronauts embarked on a trip around the world to talk about their experiences.
Armstrong was their spokesman.
"He was just amazing," Collins recalled. "He'd delve into the background of this thing and that, and wherever we went, he'd pick out details that appealed to the local population, and you could see by the time he got through his little introductory speech, they almost felt like they were crawling on board with us.
"It was just an amazing feat, and I think he's often overlooked in a way. First Man -- he's not overlooked. But what people maybe don't know about First Man was that First Man was one marvelous proponent of the virtues of the United States and spread those all over the globe."
The three men didn't remain in close touch afterward, mainly because Collins lived in Washington, Armstrong lived in Ohio and Aldrin moved around. It wasn't easy to get together. But they had shared in something wonderful and fulfilled Kennedy's mandate.
Life after ApolloApollo 11 was the proudest moment of Collins' life. He may not have had the best seat on Apollo 11, but he was happy with the seat he had, he said. He felt privileged to be there.
His biggest regret was for those who couldn't be there -- pilots who died in training accidents along the way, the Apollo 1 astronauts and his friend Charlie Bassett, who died in an airplane crash. "I thought 'boy, he'd be right up there at the tippy-top of the list of who goes first on the moon.' So I regret that aspect of it."
From left, Michael Collins, Neil Armstrong and Buzz Aldrin are honored during the 40th anniversary of their Apollo 11 mission.
After his return, Collins retired from NASA, wanting to spend more time with his family. "Pat and I took on a totally different kind of life," he said.
"I figured I'd done the space thing and at the highest level," he said. "I made a speech at a joint session of Congress and the Secretary of State, Bill Rogers, liked it, and he got President Nixon involved. And so the next thing I know, I was offered a job as assistant secretary of state. A little less than two years when up popped one that I was better qualified for, which was the director of the Air and Space Museum of the Smithsonian, and that was just getting started. I started with a vacant lot and a hole in the ground and then a building and so forth."
Collins began running with astronaut Ed White during the Gemini program and ran 50 miles when he turned 50, completing triathlons along the way. When Gupta spoke with him in 2019, Collins was still speaking about the virtues of exercise and the Mediterranean diet.
He cited "2001: A Space Odyssey" as his favorite movie.
Collins, right, speaks to Kennedy Space Center Director Bob Cabana at Launch Complex 39A, about the moments leading up to Apollo 11 launch 50 years later on July 16, 2019.
If there's one question he grew tired of hearing after all of these years, it was "what was it like up there?" It's part of why he wrote his 1974 book, "Carrying the Fire," which was re-released for the Apollo anniversary.
Throughout the Apollo mission, Kennedy's wish was in the back of Collins' mind. He reflected on that aspect of the mission 50 years later.
"Apollo 11 was the culmination," he said. "We were finally able to do what Kennedy had asked us to do, and so I think Neil and Buzz and I, all three, we felt that this was a culmination of a long, successful series. And we tried our best to fulfill it."
Seeing the moon up close was spectacular, but he recalls that the view of Earth kept snaring the astronauts' attention.
An astronaut recorded a time lapse video of Earth and it's breathtaking
"I said 'Hey, Houston, I've got the world in my window,' " Collins said. "And the world is about the size of your thumbnail if you hold it out arm's length in front of you. The whole focus of your attention goes into this little thing out there. It's in a black void, which makes its colors even more impressive. Primarily, you get the blue of the oceans, the white of the clouds, you get a little streak of tan that we call continents, but they're not that noticeable. It just looks glorious."
But Collins noticed something unique about his perspective of our home planet.
"Strangely enough, it looks fragile somehow," he said. "You want to take care of it. You want to nurture it. You want to be good to it. All the beauty, it was wonderful, it was tiny, it's our home, everything I knew, but fragile, strange."
CNN's Samantha Bresnahan and Amanda Sealy contributed to this report.