Updated

Brazil's Senate on Thursday began a trial to decide whether to permanently remove President Dilma Rousseff from office. While the formal accusations against Rousseff are related to her management of the federal budget, the leadership fight involves much more. The Associated Press explains how we got to this point and how the trial is likely to play out.

___

HOW DID WE GET HERE?

Rousseff was re-elected to a second four-year term in October 2014. As the economy worsened, hundreds of thousands took to the streets in early 2015, with many demanding the ouster of Rousseff and her left-leaning Workers' Party. Her foes in Congress introduced a measure last year to impeach and remove her. In April, the Chamber of Deputies approved it 367-137 and in May, the Senate voted 55-22 in favor. Rousseff was suspended and Vice President Michel Temer became interim president.

___

WHAT IS ROUSSEFF ACCUSED OF DOING?

Rousseff is accused of illegally shifting funds between government budgets. Opposition parties say that was to boost public spending and shore up support while masking the depths of deficits. Rousseff says other former presidents used similar accounting techniques.

___

HOW WILL THE TRIAL UNFOLD?

Supreme Court chief justice Ricardo Lewandowski will preside as witnesses from both sides testify and senators cross-examine them. Rousseff is expected to testify on Monday. A vote is expected by the middle of next week. A supermajority — 54 of the 81 senators — is needed to convict her, which would result in her permanent removal from office.

___

WHAT DO ROUSSEFF'S SUPPORTERS AND OPPONENTS CLAIM?

Rousseff and her backers say impeachment is a "coup" by corrupt opposition lawmakers meant to derail investigations into into billions of dollars in kickbacks at the state oil company. They also argue that Brazil's ruling class wants to end 13 years of leftist government. Opponents say Rousseff's budget maneuvers aggravated the crisis in Latin America's largest economy.

___

WHAT HAPPENS IF SHE IS CONVICTED?

A conviction would permanently remove Rousseff from the presidency and bar her from holding any office for eight years. Temer would serve out her term, which ends Dec. 21, 2018. If convicted, Rousseff will likely appeal to the country's highest court. But previous appeals during the process have failed.

___

WHAT HAPPENS IF SHE IS ABSOLVED?

If fewer than 54 senators vote to remove her, Rousseff would return to office. She's promised that if that happens, she would let voters decide in a plebiscite whether they want early presidential elections.

___

WHAT DO BRAZILIANS WANT?

Brazilians are soured on politicians in general; both Rousseff and Temer are very unpopular. A poll taken last month by Datafolha found that 62 percent want new elections to solve the crisis. But before new elections could occur, both Rousseff and Temer would have to resign or be removed from office.