Brazil's Senate gave the final approval for an impeachment trial against suspended President Dilma Rousseff on Wednesday, bringing closer her possible dismissal on charges of manipulating government accounts.
After a marathon session lasting nearly 17 hours, the motion was carried with 59 votes in favour and 21 against.
The lawmakers voted after a Senate special commission last week gave the green light for a trial.
Deliberations on Rousseff's fate are due to begin between August 25 and 29 - just days after the end of the Rio Olympics - with a vote taking place by September 2.
A two-thirds majority is then needed in the final vote to remove her from office.
Rousseff's Workers' Party Wednesday appealed to the Organization of American States (OAS) to block the impeachment proceedings.
In a complaint filed Wednesday with the OAS's Inter-American Court on Human Rights, parliamentary deputies loyal to Rousseff said the impeachment violated Rousseff's rights and international protocols signed by Brazil.
They asked the court to issue a temporary protective order recommending the trial be put on hold. There is no fixed deadline for the court's decision.
Rousseff was suspended from office on May 12, charged with manipulating government accounts to obscure the country's deteriorating budget situation during her 2014 re-election campaign.
She rejects that charge and has called the suspension a "coup."
Michel Temer, the country's vice president, was made interim president for 180 days after Rouseff's suspension in May. He was booed by locals during the Olympic opening ceremony in Maracana stadium.
If Rousseff is dismissed next month, Temer could stay in office until elections scheduled for 2018.