Maduro, who said he supports the decision by the Supreme Court to move Lopez from prison and place him under house arrest instead, said during a nationally televised address that he hopes the move would provide the basis for reconciliation "because the nation wants peace."
The surprise move to release Lopez came amid intensifying pressure on the embattled leftist government of Maduro, with a rising toll of death and destruction from three months of non-stop street protests.
Lopez, leader of the Voluntad Popular (Popular Will) party and a symbol of resistance to the Maduro government, emerged hours after his release from prison looking fit and happy.
He pumped his fist in the air, unfurled the Venezuelan flag and told a crowd of supporters who had gathered outside: "Yes, we can!"
"I maintain my firm opposition to this regime," Lopez said in a statement read by a leader of his party. "I reiterate my commitment to fight until conquering Venezuela's freedom."
The 46-year-old Harvard-trained politician was held for more than three and half years in a military prison outside Caracas for allegedly "inciting violence" by calling for anti-government protests.
His release has been a key demand of Venezuela's opposition and the international community, amid an intensifying political confrontation aimed at forcing the unpopular Maduro to hold early elections.
At least 91 people have died since April 1 in clashes between protesters and security forces over moves by the courts and the government to strip the National Assembly of power, delay elections and rewrite the constitution.
The Supreme Court said it had ordered Lopez's move to house arrest for health reasons, calling it a "humanitarian measure,"
But Venezuela's defense chief, General Vladimir Padrino Lopez, said the decision was the result of a "dialogue," and he praised Maduro for showing tolerance and political high mindedness.
Opposition political leaders welcomed Lopez's release from prison as a step forward, but said more was needed.
Spanish Prime Minister Mariano Rajoy, speaking from the G20 summit in Hamburg, Germany, said he and the leaders of Argentina, Brazil and Mexico were calling for "the liberation of all the political prisoners and for the organization of free and democratic elections."
In Madrid, Javier Cremades, Lopez's Spanish lawyer, underscored that "all of Leopoldo Lopez's civil and political rights must still be restored."
"What's more, there are still 300 political prisoners in the Bolivarian jails," he added.
Foro Penal, an NGO, puts the number of political prisoners in Venezuela at 433. The government insists they are in jail for acts of violence.
On Friday night, Lopez's wife Lilian Tintori spent an hour visiting her husband in his cell at Ramo Verde prison just outside Caracas.
Symbol of resistance
The former mayor of a Caracas municipality, Lopez was an early champion of street protests to force political change in Venezuela as the oil-rich country spiraled into a severe economic and political crisis after the death of Maduro's predecessor, Hugo Chavez.
The government blamed Lopez for a months-long outbreak of anti-government protests in 2014 that left 43 people dead in clashes with security forces.
He was sentenced to nearly 14 years in prison on charges that his defense said were politically motivated and based on "manipulated" evidence.
Since then the crisis has deepened, with more deaths and increasing levels of violence.
On Wednesday, pro-government militants wielding sticks and pipes stormed the grounds of the opposition-held National Assembly and beat lawmakers, injuring at least five at the only state institution that the opposition nominally controls.
Maduro condemned the violence and said he had ordered an investigation.
'Desperate and divided'
Cremades said the latest development "indicates how desperate and divided they are, it's a demonstration of the weakness of a cornered regime."
Two other prominent opposition leaders jailed by the government on similar charges have since been moved to house arrest -- Caracas mayor Antonio Ledezma and the former mayor of the western city of San Cristobal Daniel Ceballos.
Late last year the government released some lesser-known detained activists at the behest of the Vatican.
While in prison, Lopez was visited on several occasions by former Spanish prime minister Jose Luis Rodriguez Zapatero, most recently on June 4 accompanied by then Venezuelan foreign minister Delcy Rodriguez and her brother, ruling party politician Jorge Rodriguez.
On that occasion, Lopez called on Venezuelans to continue protesting in the streets. His wife denied that the meeting was to negotiate his house arrest in return for a defusing of the protests.
"Leopoldo will never negotiate his liberty, first because it is the liberty of the entire country," she said at the time. "It's not the liberty of one man, but of all of Venezuela."
Late last month, she posted a video on social media in which a man she said was her husband could be heard shouting from his cell window at Ramo Verde prison that he was being tortured.
The government denied it, releasing supposedly current photographs showing him calmly receiving food from his family.