About 600,000 revellers descended on the streets of west London for the final day of the Notting Hill Carnival.
The event, Europe's biggest street party, showcases Caribbean culture.
About 250,000 partied on the first day of festivities on Sunday which saw children in colourful costumes parade through the three-mile route.
Security was tight all along the route and police officers patrolling the carnival arrested 165 people on the last day.
The arrests were in connection with an assault, possessing an offensive weapon, drink driving, theft, public order and drugs.
Over the two days officers also seized a total of 12 dogs under the Dangerous Dogs Act.
Police said the number of arrests were "higher than usual" with 110 people held on Sunday alone.
FOOD CONSUMED AT CARNIVAL
Five tons of chicken
One ton of rice & peas
One ton of Jamaican patties
30,000 corn cobs
15,000 fried plantains
Five million hot and cold drinks
10,000 litres of Jamaican stout
25,000 bottles of rum
70,000 litres of carrot juice
Two youths were arrested after a gang of about 50 gathered in Lewisham, south-east London, and began throwing missiles at police. Police believe the group were on their way to the carnival.
A number of youths were also arrested outside the Oval cricket ground in south-east London after officers surrounded about 180 people in Harleyford Road.
Later on Monday night one officer suffered a facial injury after being hit with a bottle when unprotected police officers were attacked at Ladbroke Grove by a group of about 40 people throwing bottles and other objects.
Officers in protective clothing were sent in to deal with the disturbance which lasted for more than two hours, police said.
Ch Insp Jo Edwards said: "Whilst thousands of people came to join in with the fun and spectacle of carnival, once again the event ended with a small minority of people determined to fight and cause trouble.
"Officers had to work hard and deliver a strong interventionist style of policing late into the night to make sure that these criminals were not allowed to take over the streets of Notting Hill."
The 44th carnival's theme, Welcoming the World, was in keeping with the Olympic handover ceremony in Beijing.
The carnival was also a celebration of London's ethnic cuisine with 300 stalls serving staple Caribbean fare such as jerk chicken, fried fish, curry goat and Jamaican patties.
The procession passed through Westbourne Grove, Chepstow Avenue, Great Western Road, Kensal Road and Ladbroke Grove, all of which were closed to traffic from Saturday.
The carnival celebrates Caribbean culture
This year the Metropolitan Police spent £6m to tighten security along the route and were given additional powers to stop and search.
Police also installed metal detectors throughout the route to stop the carrying of guns and knives.
Last year several people were stabbed at night after the carnival and there were two shootings, including one where a boy aged 14 was injured in the leg.
Ch Insp Edwards said this year the number of arrests during the carnival was "higher than usual".
Ms Edwards said: "It's due to our proactive policing tactics.
"It's because of our use of stop and search at points of entry.
"You would expect more arrests because we're searching more people."
London Notting Hill Carnival Limited, the event's organiser, said the carnival would add close to £100m to the city's economy.