An American medical student imprisoned in Egypt for more than a year returned to the United States on Monday, the State Department said.

Mohamed Amashah, an Egyptian-American from New Jersey with dual citizenship, had been held in pretrial detention for over 500 days on charges of “misusing social media” and “aiding a terrorist group,” according to the Freedom Initiative, which advocated for his release.

“We welcome the release of U.S. citizen Mohamed Amashah from Egyptian custody, and thank Egypt for its cooperation in his repatriation,” the State Department said.

In this image provided by the Freedom Initiative Mohamed Amashah, second from left, is greeted by family members upon arrival at Dulles International Airport in Dulles, Va., on Monday. The American medical student detained without trial in an Egyptian prison for nearly 500 days has been freed and returned to the United States, the U.S. State Department said on Monday. (Bushra Soltan/Freedom Initiative via AP)

Amashah was arrested after he was spotted alone in Cairo's Tahrir Square in March 2019 holding a sign that read: "Freedom for all the political prisoners." He was arrested and sent to the Tora prison complex, where he stayed for almost 16 months.

Protesting has been illegal in Egypt since 2013 when President Abdel Fattah el-Sissi, as defense minister, led the military’s ouster of Mohamed Morsi, Egypt’s first democratically elected president, amid mass protests against his rule.

Tahrir Square, where Amashah held his sign, was the epicenter of Egypt's 2011 Arab Spring movement.

In prison, Amashah's health declined amid the coronavirus pandemic, prompting American officials to call for his release. He suffers from asthma and an autoimmune disease, which makes him suspectable to the disease.

The U.S. Senate Foreign Relations Committee Chairman, Sen. Jim Risch of Idaho, a Republican, said he’d personally raised the issue of “unjustly detained Americans” with Egypt’s foreign ministry last week.

Mohamed Amashah was detained without trial in an Egyptian prison for nearly 500 days has been freed and returned to the United States, the U.S. State Department said on Monday. (Bushra Soltan/Freedom Initiative via AP)

CLICK HERE FOR THE FOX NEWS APP

A bipartisan group of senators also urged Secretary of State Mike Pompeo to urge foreign governments to release American detainees, including Amashah, citing the virus.

In a statement, the Freedom Initiative called the release "welcomed progress and a step forward in the right direction that we hope is built on for the release of the political prisoners in Egypt."

The Associated Press contributed to this report.