Riot police used stun grenades and tear gas to clear protesters in the torch's path in a poor suburb on Wednesday evening. A video of the incident spurred online criticism of authorities and fuelled complaints that the Games have ignored the city's poor.
Coming amid the worst recession since the 1930s, the clashes underscored the social tensions simmering in the first South American country to host the Olympics. On Wednesday, hundreds of police had battled drug gangs in a Rio slum while in the country's distant north, riots raged for a fifth day.
The atmosphere on Macumba beach, however, showed Rio's light and fun loving side, with hundreds of fans cheering on Souza as he did laps on the sand after carrying the torch out of the ocean.
"It was incredible for us. We've been waiting for a long time for the Olympics and for surfing to be part of the Games," local surfer Milton Roberto said, a day after the International Olympic Committee (IOC) announced surfing would be one of five new sports included in the 2020 Olympics.
Some 500,000 foreign visitors are descending on the iconic beach city. They are protected by 85,000 police and soldiers, more than double the number of security personnel in the 2012 Games in London.
Heavily armed soldiers guarded the Maracana stadium, host of the 2014 soccer World Cup final, on Wednesday during a test run of the opening ceremonies that lit up the skies with fireworks.