Opposition supporters celebrate in Caracas, Venezuela,  early Monday Dec. 7, 2015.  Venezuela's opposition won control of the National Assembly by a landslide on Sunday, delivering a major setback to the ruling party and altering the balance of power after 17 years of socialist rule.
Fernando LLano/AP
Opposition supporters celebrate in Caracas, Venezuela, early Monday Dec. 7, 2015. Venezuela's opposition won control of the National Assembly by a landslide on Sunday, delivering a major setback to the ruling party and altering the balance of power after 17 years of socialist rule.
Now playing
02:50
Venezuela's opposition party wins control
TOPSHOT - Venezuelan President Nicolas Maduro holds a national flag during the closing of the campaign to elect a Constituent Assembly that would rewrite the constitution, in Caracas on July 27, 2017 on the second day of a 48-hour general strike called by the opposition.
Venezuela's opposition called for a nationwide protest on Friday in outright defiance of a new government ban on demonstrations ahead of a controversial weekend election. "The regime declared we can't demonstrate... We will respond with the TAKING OF VENEZUELA tomorrow," the opposition coalition, the Democratic Unity Roundtable, said Thursday on its Twitter account.
 / AFP PHOTO / Federico PARRA        (Photo credit should read FEDERICO PARRA/AFP/Getty Images)
FEDERICO PARRA/AFP/AFP/Getty Images
TOPSHOT - Venezuelan President Nicolas Maduro holds a national flag during the closing of the campaign to elect a Constituent Assembly that would rewrite the constitution, in Caracas on July 27, 2017 on the second day of a 48-hour general strike called by the opposition. Venezuela's opposition called for a nationwide protest on Friday in outright defiance of a new government ban on demonstrations ahead of a controversial weekend election. "The regime declared we can't demonstrate... We will respond with the TAKING OF VENEZUELA tomorrow," the opposition coalition, the Democratic Unity Roundtable, said Thursday on its Twitter account. / AFP PHOTO / Federico PARRA (Photo credit should read FEDERICO PARRA/AFP/Getty Images)
Now playing
01:46
US met with Venezuela officers plotting coup
Venezuelan citizens wait in line to cross to Ecuador at the Rumichaca international bridge in Ipiales, Colombia, on August 11, 2018. - The "unusual" increase in the migratory flow of Venezuelans, which reached 4,200 people a day, prompeted Ecuador to declare state of emergency in provinces bordering Peru and Colombia. (Photo by LEONARDO CASTRO / AFP)        (Photo credit should read LEONARDO CASTRO/AFP/Getty Images)
LEONARDO CASTRO/AFP/AFP/Getty Images
Venezuelan citizens wait in line to cross to Ecuador at the Rumichaca international bridge in Ipiales, Colombia, on August 11, 2018. - The "unusual" increase in the migratory flow of Venezuelans, which reached 4,200 people a day, prompeted Ecuador to declare state of emergency in provinces bordering Peru and Colombia. (Photo by LEONARDO CASTRO / AFP) (Photo credit should read LEONARDO CASTRO/AFP/Getty Images)
Now playing
01:56
Chaos in Venezuela triggers mass exodus
detonaciones desfile militar caracas maduro ruidos brk mirador mundial osmary hernandez_00004223.jpg
vtv
detonaciones desfile militar caracas maduro ruidos brk mirador mundial osmary hernandez_00004223.jpg
Now playing
02:18
Venezuelan President evacuated from stage
WASHINGTON, DC - APRIL 30:  (CHINA OUT, SOUTH KOREA OUT) U.S. President Donald Trump speaks during a joint press conference with Nigerian President Muhammadu Buhari at the Rose Garden at the White House April 30, 2018 in Washington, DC. The two leaders also met in the Oval Office to discuss a range of bilateral issues earlier in the day.  (Photo by The Asahi Shimbun via Getty Images)
he Asahi Shimbun via Getty Images
WASHINGTON, DC - APRIL 30: (CHINA OUT, SOUTH KOREA OUT) U.S. President Donald Trump speaks during a joint press conference with Nigerian President Muhammadu Buhari at the Rose Garden at the White House April 30, 2018 in Washington, DC. The two leaders also met in the Oval Office to discuss a range of bilateral issues earlier in the day. (Photo by The Asahi Shimbun via Getty Images)
Now playing
01:59
Trump asked advisers about invading Venezuela
venezuela prison riot joshua holt newton lkl_00004530.jpg
Facebook/Josh Holt
venezuela prison riot joshua holt newton lkl_00004530.jpg
Now playing
02:03
American jailed in Venezuela fears for life
 Carolina Wong and Jorge Salas sit with their daughter, Akira, before they leave Venezuela for Peru.
Khushbu Shah/CNN
Carolina Wong and Jorge Salas sit with their daughter, Akira, before they leave Venezuela for Peru.
Now playing
01:54
Family tearfully leaves Venezuela
Now playing
01:30
Dad remembers son killed in Venezuelan unrest
Demonstrators clash with the police during a rally against Venezuelan President Nicolas Maduro, in Caracas on April 19, 2017.
Venezuela braced for rival demonstrations Wednesday for and against President Nicolas Maduro, whose push to tighten his grip on power has triggered waves of deadly unrest that have escalated the country's political and economic crisis. / AFP PHOTO / Juan BARRETO        (Photo credit should read JUAN BARRETO/AFP/Getty Images)
JUAN BARRETO/AFP/Getty Images
Demonstrators clash with the police during a rally against Venezuelan President Nicolas Maduro, in Caracas on April 19, 2017. Venezuela braced for rival demonstrations Wednesday for and against President Nicolas Maduro, whose push to tighten his grip on power has triggered waves of deadly unrest that have escalated the country's political and economic crisis. / AFP PHOTO / Juan BARRETO (Photo credit should read JUAN BARRETO/AFP/Getty Images)
Now playing
01:54
Why Venezuelans are protesting
venezuelan flag
venezuelan flag
Now playing
01:19
Venezuela to US: Military action a 'crazy act'
Now playing
01:36
Panetta on Trump: This is not reality TV
Lilian Tintori
Now playing
02:09
Venezuela: Opposition leaders seized
Voters receive instructions by a Venezuelan Bolivarian National Guard officer outside a polling station during the election for a constitutional assembly in Caracas, Venezuela, Sunday, July 30, 2017.
Ariana Cubillos/AP
Voters receive instructions by a Venezuelan Bolivarian National Guard officer outside a polling station during the election for a constitutional assembly in Caracas, Venezuela, Sunday, July 30, 2017.
Now playing
00:56
Venezuelan candidate shot dead before election
Anti-government activists set up a barricade during protests of the election for a Constituent Assembly in Caracas on July 30, 2017. Deadly violence erupted around the controversial vote, with a candidate to the all-powerful body being elected shot dead and troops firing weapons to clear protesters in Caracas and elsewhere.
RONALDO SCHEMIDT/AFP/Getty Images
Anti-government activists set up a barricade during protests of the election for a Constituent Assembly in Caracas on July 30, 2017. Deadly violence erupted around the controversial vote, with a candidate to the all-powerful body being elected shot dead and troops firing weapons to clear protesters in Caracas and elsewhere.
Now playing
01:27
Violent protests over Venezuelan election
Masked opposition demonstrators take part in clashes with riot police ensuing an anti-government protest in Caracas, on July 26, 2017.
Venezuelans blocked off deserted streets Wednesday as a 48-hour opposition-led general strike aimed at thwarting embattled President Nicolas Maduro's controversial plans to rewrite the country's constitution got underway. / AFP PHOTO / FEDERICO PARRA        (Photo credit should read FEDERICO PARRA/AFP/Getty Images)
FEDERICO PARRA/AFP/AFP/Getty Images
Masked opposition demonstrators take part in clashes with riot police ensuing an anti-government protest in Caracas, on July 26, 2017. Venezuelans blocked off deserted streets Wednesday as a 48-hour opposition-led general strike aimed at thwarting embattled President Nicolas Maduro's controversial plans to rewrite the country's constitution got underway. / AFP PHOTO / FEDERICO PARRA (Photo credit should read FEDERICO PARRA/AFP/Getty Images)
Now playing
01:49
Why Venezuela is in crisis
Venezuela caught in chaos newton dnt_00000000.jpg
Venezuela caught in chaos newton dnt_00000000.jpg
Now playing
01:46
Caught in the chaos in Venezuela

Story highlights

This is the first time in 17 years that Chavismo has not won a nation-wide election in Venezuela

The vote comes as the oil giant faces a crippling recession and a rise in violence

A Pew Research Center poll shows 85% of Venezuelans dissatisfied with government

CNN —  

Venezuela’s opposition party has claimed the majority of seats in the National Assembly in elections held Sunday, the first major shift in power in the legislative branch since the late President Hugo Chavez took office in 1999.

The Democratic Unity Roundtable (MUD) took 99 seats to just 46 for the United Social Party of Venezuela (PSUV), Tibisay Lucena, president of Consejo Nacional Electoral announced.

“Venezuela, we won!” said opposition key figure Henrique Capriles, governor of the state of Miranda. “I always told you all, this was the way! Humility, maturity and serenity. Long live the people of Venezuela!”

Venezuelans across the country displayed their participation in the voting by sharing photos of ink-dyed fingers on social media.

Read coverage from CNN Español

Setback for Chavismo

The election results are seen as a major setback to the ruling party. This is the first time in 17 years that Chavismo has not won a nationwide election in Venezuela.

“This is a victory for democracy,” said Jesus Torrealba, executive secretary for the MUD.

“It’s a historic victory, now begins the time for change in Venezuela!” he said to cheering supporters who chanted “Libertad, libertad” at the victory rally at MUD headquarters in Caracas.

President Nicolas Maduro took to the airwaves and announced that he accepted the loss of his majority, but pledged not to give up on the mission of deceased Hugo Chavez to create a socialist state.

Maduro recognized his party’s loss and assured Venezuelans he will respect the results. He blamed the defeat on “the economic war” waged by political interests inside and outside Venezuela.

“I feel at peace with my conscience because everything we have done has been for the protection of the country,” Maduro said in the national address.

Economic slowdown

The vote comes as the oil giant faces major economic inflation, a crippling recession and a rise in violence and insecurity.

A Pew Research Center poll this week showed 85% of Venezuelans are dissatisfied with the direction the country is taking.

It also echoes a shift to the right seen in Argentina last month when Mauricio Macri won the presidential election promising to rewrite the playbook on the country’s economy. Latin America as whole has been grappling with an economic slowdown.

There are still 22 undefined legislative seats because the races are too close to call.

This victory gives ample powers to the opposition which, up until now, was greatly diminished.

The new National Assembly doesn’t take power until early January with a term that lasts for five years.