The driver of the train that derailed in northwestern Spain was charged Sunday with 79 counts of homicide by professional recklessness and an undetermined number of counts of causing injury by professional recklessness.
At least 79 people died as a result of last week's crash.
A court granted the driver, Francisco Jose Garzon, conditional release.
His train driver's license was suspended for six months. He must report to court weekly, and his passport was surrendered.
Earlier Sunday, the driver, who was hospitalized for two days while under police guard, was transferred to court, officials said. He was in court for more than five hours.
The data recorders from the train are still with police.
Questions have focused on the speed at which the train was traveling as it entered a curve in the track near Santiago de Compostela on Wednesday evening.
The crash on the outskirts of the city, which is popular with tourists and Christian pilgrims, shocked the Galician region and the rest of the nation.
Interior Minister Jorge Fernandez Diaz told reporters Saturday there are "rational indications" that the accident was the fault of the driver. Pressed on what those are, he declined to provide details.
Identifying the bodies
The crumpled wreckage of the eight cars sent careering onto their sides when the train derailed has been removed from the tracks, but the grim task of identifying the dead continues.
Maria Pardo Rios, a spokeswoman for the Galicia regional supreme court, told CNN late Friday that 75 victims had been identified.
At least 63 of the dead are Spanish, she said. Also among the fatalities are two U.S. citizens -- Ana-Maria Cordoba of Arlington, Virginia, and Myrta Fariza of Houston -- and some Europeans and Latin Americans.
Fariza and her husband were on their way to celebrate a Catholic festival. He was injured and later released from the hospital.
"Myrta was our loving wife, mother, sister, mother-in-law, aunt and friend, and words cannot express our sense of loss," her family said in a statement.
"To all who knew her, Myrta provided irreplaceable love, compassion, courage, friendship and support. We will miss her dearly."
As they are identified, most of the bodies are being returned to their families, the regional justice department said. DNA testing will be conducted on some remains to establish their identity, it said.
Police forensic experts said at a news conference Saturday there are 37 body parts that must still be tested to see whether they belong to bodies that have already been identified, or to others not yet known.
The death toll rose to at least 79 on Sunday morning when another person died, a representative for the regional health department said. About 70 people who were injured in the crash remained in the hospital Sunday, about 22 of them listed in serious condition, the official said.
At least five U.S. citizens were injured, said State Department deputy spokeswoman Marie Harf.