The criminal case against a Mexican megachurch leader on charges of child rape and human trafficking was dismissed Tuesday by a California appeals court on procedural grounds.

Naasón Joaquín García, the self-proclaimed apostle of La Luz del Mundo, has been in custody since June following his arrest on accusations involving three girls and one woman between 2015 and 2018 in Los Angeles County. He has denied wrongdoing.

While being held without bail in Los Angeles, García has remained the spiritual leader of La Luz del Mundo, which is Spanish for “The Light Of The World.” The Guadalajara, Mexico-based evangelical Christian church was founded by his grandfather and claims 5 million followers worldwide.

Mexico-based megachurch La Luz del Mundo, leader and self-proclaimed apostle Naasón Joaquín García's 50 birthday celebration portrait, is displayed on the side of the East Los Angeles temple on Friday, June 7, 2019. On Tuesday, April 7, 2020 a California appeals court dismissed the criminal case against the Mexican megachurch leader on charges of child rape and human trafficking. The case was dismissed on procedural grounds. García, the self-proclaimed apostle of La Luz del Mundo, has been in custody since June. He is currently being held without bail in Los Angeles. The attorney general's office said it was reviewing the court's ruling. (AP PhotoDamian Dovarganes)

Mexico-based megachurch La Luz del Mundo, leader and self-proclaimed apostle Naasón Joaquín García's 50 birthday celebration portrait, is displayed on the side of the East Los Angeles temple on Friday, June 7, 2019. On Tuesday, April 7, 2020 a California appeals court dismissed the criminal case against the Mexican megachurch leader on charges of child rape and human trafficking. The case was dismissed on procedural grounds. García, the self-proclaimed apostle of La Luz del Mundo, has been in custody since June. He is currently being held without bail in Los Angeles. The attorney general's office said it was reviewing the court's ruling. (AP PhotoDamian Dovarganes)

It was not clear when he would be released.

The attorney general's office said it was reviewing the court's ruling. García's attorney did not immediately have a comment.

The appeals court ruling states that the Los Angeles County Superior Court must dismiss the 29 counts of felony charges that range from human trafficking and production of child pornography to forcible rape of a minor.

FILE - This June 5, 2019 file photo shows Naasón Joaquín García, the leader of fundamentalist Mexico-based church La Luz del Mundo, appearing in Los Angeles County Superior Court. On Tuesday, April 7, 2020 a California appeals court has dismissed the criminal case against the Mexican megachurch leader on charges of child rape and human trafficking. The case was dismissed on procedural grounds.  García, the self-proclaimed apostle of La Luz del Mundo, has been in custody since June. He is currently being held without bail in Los Angeles. The attorney general's office said it was reviewing the court's ruling. (AP PhotoDamian Dovarganes, File)

FILE - This June 5, 2019 file photo shows Naasón Joaquín García, the leader of fundamentalist Mexico-based church La Luz del Mundo, appearing in Los Angeles County Superior Court. On Tuesday, April 7, 2020 a California appeals court has dismissed the criminal case against the Mexican megachurch leader on charges of child rape and human trafficking. The case was dismissed on procedural grounds. García, the self-proclaimed apostle of La Luz del Mundo, has been in custody since June. He is currently being held without bail in Los Angeles. The attorney general's office said it was reviewing the court's ruling. (AP PhotoDamian Dovarganes, File)

The appeals court ruled that because García's preliminary hearing was not held in a timely manner and he did not waive his right to one, the complaint filed against him must be dismissed.

The appeal only mentioned the dismissal of García's case and not those of his co-defendants, Susana Medina Oaxaca and Alondra Ocampo. A fourth defendant, Azalea Rangel Melendez, remains at large.

It was not immediately clear if the co-defendants' cases would also be tossed.

In February, a Southern California woman filed a federal lawsuit against the church and García. In it, she said García and his father sexually abused her for 18 years starting when she was 12, manipulating Bible passages to convince her the mistreatment actually was a gift from God.

The dismissal is the latest in a series of blunders on this high-profile case for the attorney general’s office.

Attorney General Xavier Becerra himself pleaded with additional victims to come forward — a move defense attorneys said could taint a jury pool.

“It would be hard to believe that, based on the information that we’re collecting, that it’s only these four individuals,” Becerra said in June, repeatedly calling García “sick” and “demented.”

Prosecutors Amanda Plisner and Diana Callaghan also said multiple times in court that they expected to file additional charges based on more victims as the case continued to be investigated. But ultimately they only added three counts of possession of child pornography to the original complaint.

Plisner and Callaghan were additionally sanctioned by a Superior Court judge in September, who said they had violated a court order in failing to give defense lawyers evidence. The judge later rescinded the sanctions and overturned $10,000 in fines she had levied.