Botafogo snapped their seven-game winless streak in Brazil Serie A with a come-from-behind 3-2 victory at home to Vasco da Gama on Thursday.
The struggling club had not taken maximum points since their 3-1 win against Nautico on September 10 but ended that barren run courtesy of a late brace from Bruno Mendes.
Vasco da Gama took the lead through Carlos Alberto on 24 minutes but the hosts hit back six minutes later thanks to Elkeson.
Alberto completed his double seven minutes before the break as Vasco da Gama went into the break with a 2-1 lead.
Mendes did restore parity with 15 minutes remaining and with the match seemingly destined for a stalemate, Mendes netted a 93rd-minute winner.
The loss for Vasco da Gama means they missed the chance to make ground on third-placed Gremio, who hold an eight-point advantage on rivals below them.
Sao Paulo continued their rich vein of form with a comfortable 2-0 win over bottom club Atletico Goianiense.
Defender Paulo Miranda put Sao Paulo ahead on the half-hour mark before Osvaldo doubled the host's advantage 10 minutes later.
Ney Franco's side have now won four league games in succession and move to within five points of second-placed Atletico Mineiro.
Meanwhile, Sport Recife's hopes of maintaining their Brazil Serie A status beyond this season received a boost after they defeated Ponte Preta 3-1.
Recife, who occupies the final relegation spot, are now just five points from safety.