Custodian Rogerio Ceni scored a curled free-kick winner as Sao Paulo beat Guarani 2-1.
The goal is the latest of the more than 100 Ceni has scored in a 21-year-career.
It was 16th against 11th as Guarani hosted neighbours Sao Paulo in the Paulista championship.
The visitors were on top from the start and took a deserved lead after 32 minutes as Aloisio headed home from a corner on the right.
Sao Paulo looked comfortable at this stage but they suffered a setback when Marcelo Canete was sent off for a second yellow card offence after 38 minutes.
And three minutes later the hosts nearly equalised but Ademir Sopa’s shot from distance thundered off the crossbar and back into play.
However, seconds after the restart they did level – Thiago Gentil with a crisp finish from close in.
But parity last just four minutes.
Sao Paulo were awarded a free-kick just outside the area and 40-year-old goalkeeper Rogerio Ceni, who has scored more than 100 goals in his 21-year-career, added to his tally with a fine curling effort around the wall.
Guarani’s efforts to get back on terms again weren’t helped by the sending off of Tiago Pagnussat after 64 minutes, also for a second yellow.
Sao Paulo then held on for the three points – a victory which sees them climb to ninth in the table.
Guarani slip to 18th, two places and two points off the bottom.