Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

CARACAS, Venezuela — Jailed Venezuelan opposition leader Leopoldo Lopez was transferred to house arrest Saturday after spending more than three years behind bars in a military prison.

When he arrived home, the 46-year-old activist waved a Venezuelan flag while standing on top of a wall outside of his home in the capital of Caracas. Soon after, lawmaker and ally Freddy Guevara read a statement in which Lopez recommitted his staunch opposition to President Nicolas Maduro's government.

In his statement, Lopez proclaimed that he stood firm in his "convictions to fight for a real peace, coexistence, change and freedom," and noted that he is now "a prisoner in my home, like the Venezuelan people."

Outside Lopez's home, hundreds of supporters met his return carrying Venezuelan flags to celebrate along with journalists looking for information about whether the transfer may have been part of a larger deal between the opposition and Maduro's government.

Earlier in the day, the Venezuelan Supreme Court said in a statement that it had granted Lopez's release for health reasons and for "serious signs of irregularities" in the handling of the case that it did not specify.

Venezuelan opposition leader Leopoldo Lopez hugging with his children at his house in Caracas after he was released from prison and placed under house arrest for health reasons, on July 8, 2017. Lopez Family / via AFP - Getty Images

The Morning Rundown Get a head start on the morning's top stories. This site is protected by recaptcha

The opposition has been demanding the release of dozens of activists it consider political prisoners, the most prominent being Lopez, in order to initiate talks aimed at resolving a political crisis that has left more than 90 people dead and hundreds injured. Lopez is the co-founder of the political party Primero Justicia.

"We spoke for like 40 minutes. He's hugging his children, he's with his wife. .... I'm sure they are celebrating," Lopez's father, who shares his son's name, said from exile in Spain. He said in recent days Lopez had been isolated in his prison cell without food and attributed his son's transfer to the considerable international pressure on Maduro's government.

Related: Pro-Maduro Groups Storm Congress, Injure Lawmakers

"He told me himself recently: Dad, it's always darkest right before the break of dawn," he added.

The response of #LeopoldoLopez mother about her son being placed under house arrest: 'he just knocked on the door' this morning https://t.co/skwEXoGrs2 — Mariana_Atencio (@marianaatencio) July 8, 2017

Lopez was sentenced in 2015 to nearly 14 years in prison for inciting violence during anti-government protests in which three people died and dozens were wounded.

Venezuela has been rocked by months of near-daily protests again this year. There has been widespread discontent over Maduro's government amid shortages of basic goods, galloping inflation and allegations that Maduro is flouting democratic norms.

Lopez's lawyer in Spain, Javier Cremades, said the terms of Lopez's release mean he will be allowed to serve out his sentence at home and cannot leave.

Related: Mother of Lopez: Americans Need to Know 'People Are Suffering'

"It is a gesture of weakness of the Maduro regime and of the opposition's strength," Cremades said. "It is a step forward, and very positive news."

Lawmaker Gaby Arellano of Lopez's Popular Will party said his release represents "the end of the dictatorship."

Lopez displays the Venezuelan national flag as he greets supporters gathering outside his house in Caracas, after he was released from prison and placed under house arrest for health reasons, on July 8, 2017. Juan Barreto / AFP - Getty Images

Foreign governments and human rights groups have criticized Lopez's detention as politically motivated. A Venezuelan prosecutor on the case who later sought asylum in the United States has said he was ordered by the government to arrest Lopez despite a lack of evidence.

Lilian Tintori, Lopez's wife, has campaigned in Venezuela and abroad to try to win freedom for her husband.

In February she met with President Donald Trump in the White House. Trump tweeted a photo of the Oval Office encounter and called for Lopez to be released "immediately."

"It gives us great pleasure that Leopoldo Lopez is at his home with his family!" said Henrique Capriles, another opposition leader, via Twitter. "He must be given his full freedom, like all the political prisoners!"