A specially equipped Airbus A310 carrying 75-year-old Roman Catholic priest Miguel Pajares landed at the Spanish capital's Torrejon military air base at 8.15am (0615 GMT), the Defence Ministry said in a message on Twitter.
El A310 que trae a España a Miguel Pajares y Juliana Bohi ha aterrizado a las 8:15 en la base militar de Torrejón pic.twitter.com/hQax3ddWY4
— Ministerio Defensa (@Defensagob) August 7, 2014
Immediately after landing on Thursday morning, he was transferred by ambulance to Madrid's Carlos III Hospital, which specializes in tropical diseases.
The priest was stable and showing no sign of bleeding, health officials said.
The priest had tested positive for Ebola at the Saint Joseph Hospital in the Liberian capital Monrovia where he worked, according to the Spanish aid organization that employs him, Juan Ciudad ONGD.
The military flight also evacuated Spanish nun Juliana Bonoha Bohe, who had worked at the same hospital, the ministry said. She is not known to be infected with Ebola but is nevertheless to be isolated for treatment.
She will be retested for Ebola to be on the safe side, Spanish health authorities have said.
The Spanish priest had been in quarantine at the Saint Joseph Hospital in Monrovia, along with five other missionaries, since the death on Saturday of the hospital's director from Ebola.
"This news has lifted my spirits, it is great, I am very happy. It is worth fighting on," the priest, who has worked in Liberia for more than five decades, told Spanish newspaper ABC by telephone when informed on Wednesday that he would be repatriated.
Can't let them die
Juan Ciudad ONGD, which runs hospitals around the world, has asked the Spanish foreign ministry to fly out two other nuns who were in quarantine with Ebola at the same hospital along with Pajares: Chantal Pascale of the Democratic Republic of Congo and Paciencia Melgar Ronda of Equatorial Guinea.
Spain's public health director, Mercedes Vinuesa, said the authorities were dealing only with a request for Spanish citizens for the moment.
"What the country is considering is the repatriation of Spaniards," she told a news conference on Wednesday.
During an interview broadcast on Monday, the Spanish priest had said he and the other missionaries wanted to be taken to Spain for treatment.
"I have a fever. I don't have any appetite, I could go without eating anything, I have a lot of pain in my joints. I need help to move from one place to the other," he told CNN en Espanol, a 24-hour Spanish-language news network.
The Spanish priest's cousin, Begona Martin, appealed for the Spanish government to evacuate the African missionaries who are ill.
"We hope that they don't leave them there because we know what the outcome will be. As Miguel has said, they would be condemned to death. We can't let them die this way," she told news radio Cadena Ser.
Ebola causes severe fever and, in the worst cases, unstoppable bleeding. It is transmitted through close contact with bodily fluids, and people who live with or care for patients are most at risk.
Since breaking out earlier this year, the epidemic has claimed 932 lives and infected more than 1,700 people across west Africa, according to the World Health Organization.
Other cases have been reported in Guinea, Sierra Leone and Nigeria.
Two Americans who worked for Christian aid agencies in Liberia and were infected with Ebola while taking care of patients in Monrovia were brought back to the United States for treatment in recent days.