The U.S. Marine reservist who had been detained earlier this year in Mexico for allegedly accidentally crossing the border from California with weapons in his vehicle has been released.

Sgt. Andrew Paul Tahmooressi, who suffers from PTSD and served in Afghanistan, said he made a wrong turn when he ended up in Mexico on March 31, CNN reported.

He was jailed after being caught at a checkpoint in Tijuana with three firearms in his truck, including a .45-caliber pistol, a pump shotgun and an AR-15 rifle.

A number of politicians did try to push for his release, stressing his need to be treated for PTSD, which he could not receive in a Mexican jail.

Most recently, the former New Mexico governor met Tahmooressi at Mexico's El Hongo federal prison last week.

Prior to that, the Marine's family had pleaded with the Mexican government to set him free. Tahmooressi's mother, Jill, said in May that he had served in Afghanistan and, on returning stateside, left his Miami home to move to San Ysidro, California, for PTSD treatment.

The Mexican court released him Friday after finding that there was no cause to prosecute him. He had been charged with possession of weapons without a license, including two firearms used exclusively by the military and cartridges used exclusively by the military.

Coverage of his jailing spread after the conditions where he was jailed were revealed.

Tahmooressi also described a suicide attempt with a shattered light bulb after being punched, slapped, cursed at, deprived of water and food, and shackled to a bed with a four-point restraint in a Mexican prison, CNN reported. But prison officials deny the allegations.

Yet Tahmooressi's treatment in prison improved after the reports.

He was released by Mexican officials and arrived back in Miami Friday to spend time and be reunited with his family.