Brazilian President Dilma Rousseff attends the launching ceremony of a new stage of the state-subsidized housing program at Planalto Palace in Brasilia on May 6, 2016.
A special committee in Brazil's Senate was to vote Friday on whether to recommend starting an impeachment trial against President Dilma Rousseff who faces being suspended from office in less than a week. / AFP / EVARISTO SA        (Photo credit should read EVARISTO SA/AFP/Getty Images)
EVARISTO SA/AFP/AFP/Getty Images
Brazilian President Dilma Rousseff attends the launching ceremony of a new stage of the state-subsidized housing program at Planalto Palace in Brasilia on May 6, 2016. A special committee in Brazil's Senate was to vote Friday on whether to recommend starting an impeachment trial against President Dilma Rousseff who faces being suspended from office in less than a week. / AFP / EVARISTO SA (Photo credit should read EVARISTO SA/AFP/Getty Images)
Now playing
01:06
Why Brazil impeached President Rousseff
BRASILIA, BRAZIL - AUGUST 29:  Suspended Brazilian President Dilma Rousseff testifies on the Senate floor during her impeachment trial on August 29, 2016 in Brasilia, Brasil. Senators will vote in the coming days whether to impeach and permanently remove Rousseff from office.. (Photo by Igo Estrela/Getty Images)
Igo Estrela/Getty Images South America/Getty Images
BRASILIA, BRAZIL - AUGUST 29: Suspended Brazilian President Dilma Rousseff testifies on the Senate floor during her impeachment trial on August 29, 2016 in Brasilia, Brasil. Senators will vote in the coming days whether to impeach and permanently remove Rousseff from office.. (Photo by Igo Estrela/Getty Images)
Now playing
03:58
Brazil's president removed from office
Brazil's suspended President Dilma Rousseff makes a statement at the Planalto Palace in Brasilia on May 12, 2016. Rousseff said Thursday that democracy and the constitution are at stake after she was forced to face an impeachment trial in the Senate and cede power to vice president Michel Temer.
EVARISTO SA/AFP/AFP/Getty Images
Brazil's suspended President Dilma Rousseff makes a statement at the Planalto Palace in Brasilia on May 12, 2016. Rousseff said Thursday that democracy and the constitution are at stake after she was forced to face an impeachment trial in the Senate and cede power to vice president Michel Temer.
Now playing
03:26
WIll Brazil's President be ousted from office?
brazil new president temer rousseff replacement darlington pkg_00011523.jpg
brazil new president temer rousseff replacement darlington pkg_00011523.jpg
Now playing
02:17
Brazil's vice president steps in as interim president
Brazilian President Dilma Rousseff speaks during a press conference at Planalto Palace in Brasilia on April 18, 2016.
President Rousseff said Monday that she is "outraged" by a vote in Congress to authorize impeachment proceedings against her and vowed to keep fighting. / AFP / EVARISTO SA        (Photo credit should read EVARISTO SA/AFP/Getty Images)
EVARISTO SA/AFP/AFP/Getty Images
Brazilian President Dilma Rousseff speaks during a press conference at Planalto Palace in Brasilia on April 18, 2016. President Rousseff said Monday that she is "outraged" by a vote in Congress to authorize impeachment proceedings against her and vowed to keep fighting. / AFP / EVARISTO SA (Photo credit should read EVARISTO SA/AFP/Getty Images)
Now playing
02:16
Brazilian President Rousseff vows to fight impeachment
Brazilian President Dilma Rousseff delivers a speech during the launching ceremony of the National Plan against Aedes aegypti and microcephaly in Brasília in March 23, 2016. The aedes aegypti mosquito is the vector of Zica virus. AFP PHOTO/ANDRESSA ANHOLETE / AFP / Andressa Anholete        (Photo credit should read ANDRESSA ANHOLETE/AFP/Getty Images)
ANDRESSA ANHOLETE/AFP/AFP/Getty Images
Brazilian President Dilma Rousseff delivers a speech during the launching ceremony of the National Plan against Aedes aegypti and microcephaly in Brasília in March 23, 2016. The aedes aegypti mosquito is the vector of Zica virus. AFP PHOTO/ANDRESSA ANHOLETE / AFP / Andressa Anholete (Photo credit should read ANDRESSA ANHOLETE/AFP/Getty Images)
Now playing
01:30
Brazil lawmakers vote to impeach president
Brazil recession_00003825.jpg
Brazil recession_00003825.jpg
Now playing
01:56
Feeling the pain of Brazil's recession
Frightened music goers watched as a stage collapsed at the Atmosphere Festival in Esteio, Brazil, on Sunday. The video shows strong winds and storm clouds before the scaffolding crumbled.
Xandi Medeiros heard about the collapse from his 16-year-old son who was at the festival.
"I was terrified when I saw the video. I could never have imagined that a tragedy like this could unfold ... where the DJ died and some people were injured..." he told CNN in Portuguese.
Xandi Medeiros/Facebook
Frightened music goers watched as a stage collapsed at the Atmosphere Festival in Esteio, Brazil, on Sunday. The video shows strong winds and storm clouds before the scaffolding crumbled. Xandi Medeiros heard about the collapse from his 16-year-old son who was at the festival. "I was terrified when I saw the video. I could never have imagined that a tragedy like this could unfold ... where the DJ died and some people were injured..." he told CNN in Portuguese.
Now playing
00:52
Concert stage collapses in high wind, DJ dies
Sao Paulo Fire
Now playing
00:54
Moment fire collapses building in Sao Paulo
Now playing
00:46
Child rescued after being buried alive
brazil recommends rousseff impeachment darlington lklv_00001301.jpg
brazil recommends rousseff impeachment darlington lklv_00001301.jpg
Now playing
01:41
Brazil committee recommends Rousseff's impeachment
brazil rio olympics superbacteria darlington pkg_00014129.jpg
brazil rio olympics superbacteria darlington pkg_00014129.jpg
Now playing
02:17
Super bacteria found on Rio beaches, Olympic venues
brazil olympics evictions darlington pkg_00000614.jpg
brazil olympics evictions darlington pkg_00000614.jpg
Now playing
02:09
Brazil clears residents ahead of Olympics
cnn exclusive michel temer intv darlington _00023305.jpg
cnn exclusive michel temer intv darlington _00023305.jpg
Now playing
03:53
CNN Exclusive: Brazilian VP Michel Temer speaks out
brazil rousseff impeach olympics lklv darlington _00003829.jpg
brazil rousseff impeach olympics lklv darlington _00003829.jpg
Now playing
01:31
Turmoil in Brazil may jeopardize the Olympic games
(CNN) —  

It’s enough to make even the most seasoned political pundit’s head spin.

The mess that is Brazil’s political situation took a surprising twist when the new chief of the lower house of Congress said Monday that he wanted to strike down impeachment proceedings against President Dilma Rousseff.

The move angered and bewildered many. And by Tuesday morning, interim Chamber of Deputies Speaker Waldir Maranhao had backpedaled, writing a letter announcing he had revoked his decision.

Faced with a Senate vote Wednesday on whether to proceed, the government dispatched Attorney General Eduardo Cardozo to petition the Supreme Court for an annulment, on the basis that the claims are politically motivated.

It’s a last-ditch move and the Senate is supposed to vote on the measure as scheduled.

Should the vote pass, Rousseff will have to step down for up to 180 days while the impeachment claims are investigated.

The motion to impeach Rousseff was first initiated in December, and in April the lower house of Congress voted overwhelmingly to begin proceedings.

But with political wrangling at a fever pitch, what will happen next is anyone’s guess.

So what exactly is going on?

When did this all start, and what did Rousseff do?

Corruption allegations have been dogging Rousseff’s administration since 2011. A sweeping investigation into a multimillion-dollar kickback scheme at the state-run oil company Petrobras embroiled dozens of the country’s leading businessmen and politicians. While she isn’t accused directly of profiting, Rousseff was the chairwoman of Petrobras during many of the years of the alleged corruption.

In December, a bid to impeach Rousseff was launched by the then-speaker of the lower house of Congress, Eduardo Cunha, who argued that the President was guilty of breaking budgetary laws by borrowing from state banks to cover a shortfall in the deficit and pay for social programs in the run-up to her 2014 re-election.

She has been also blamed for the worst recession in decades, now in its second year.

“I will fight to survive, not just for my term in office,” Rousseff told CNN’s Christiane Amanpour last month. “But I will fight, because what I am advocating and defending is the democratic principle that governs political life in Brazil.”

Brazil leader defends fiscal practices, says sexism part of effort to oust her

If impeachment proceedings continue, how will they play out?

If the vote for an impeachment trial against her goes unimpeded through the Senate, Rousseff would have to step aside for up to six months while she’s investigated. She would spend that time preparing her defense. In that case, Brazilian Vice President Michel Temer would temporarily take the reins until November when the process would return to a special Senate committee.

Michel Temer: 5 things to know about Brazil’s VP

At that point, Rousseff would have 20 days to present her case. Following that, the committee would vote on a final determination and then present it for a vote in the full Senate.

It will take a two-thirds majority to remove the President from office.

Who are the key players?

Dilma Rousseff is the President of Brazil, a former revolutionary and resistance member who was jailed and allegedly tortured in the early 1970s. A former minister for mines and energy, she took office in 2010 as Brazil’s first female president. She was handpicked by the popular President Luis Inácio Lula da Silva, universally known as Lula, and enjoyed a period of popularity before corruption scandals mired her second term in office.

Lula da Silva is a founding member of Brazil’s only socialist political party, Partido dos Trabalhadores, the Workers’ Party. He left office with a 90% approval rating but was questioned by police probing corruption allegations in March. He staunchly denies the accusations.

Vice President Michel Temer would assume the presidency for the time that Rousseff would be obliged to step aside if the impeachment process gets that far. Temer’s party, the Brazilian Democratic Movement Party, or PMDB, has also been implicated in the corruption scheme and could be further weakened by the ongoing investigation.

Temer: I want to regain the people’s trust

An outspoken critic of Rousseff, Eduardo Cunha was the speaker of the Chamber of Deputies and the man who initiated impeachment proceedings. He was removed from his position in early May by the Supreme Court.

He was replaced by Waldir Maranhao, who called for the annulment of the move to impeach Rousseff, then revoked that decision Tuesday, according to state-run Agencia Brasil.

Even before Maranhao changed tacks, his counterpart in the upper house, Renan Calheiros, had dismissed the motion and said that the proceedings would carry on as planned.

What is likely to happen next?

Despite the last-minute political wrangling, the Senate vote still is scheduled for Wednesday.

If a simple majority of senators vote that the Senate should take on the impeachment case, Rousseff will step aside, and all eyes will look ahead to November when she will need to defend herself.

Whatever happens, it is unlikely to be an entirely smooth process. Rousseff’s supporters have vowed to take to the streets in retaliation, ensuring a long, and potentially messy, battle ahead.

The impeachment of Dilma Rousseff – what’s next?

What else will this affect?

The country is facing challenges on numerous fronts, from dealing with the Zika virus to the 2016 Olympics, which are due to open in Rio de Janeiro in August. Due to her obligations to step aside during the impeachment process, Rousseff could be sidelined when the Games begin, something she has worked for since the beginning of the bid process.

Opinion: Should we panic about Rio Olympics? Get real

Not only that, the country faces a crippling recession that has left hundreds of thousands unemployed – close to 10% – and thousands of businesses closed. It’s sent inflation through the roof. The weak Brazilian real, which Olympics organizers are hoping will attract Olympic tourism, spiked briefly on Monday’s announcement about the impeachment process before resettling.

CNN’s Catherine E. Shoichet and Shasta Darlington contributed to this report.