A total of 740 security forces were on duty, including police officers, firefighters and ambulance workers, an increase of around five percent over the same time last year, according to Bunol city hall.
In addition, police cars were parked at the entrance to the town's narrow streets, where half-naked revellers pelted each other with tomatoes during the hour-long festivities, to prevent unauthorised vehicles from entering.
"The security apparatus was reinforced and adapted following the attacks" in Barcelona and the nearby seaside resort of Cambrils that killed 16 people, Juan Carlos Moragues, the central government's representative in the region of Valencia, told reporters.
The bang of fireworks set off the bedlam at 11 am. Revellers, many wearing just bathing suits and goggles, bent down to pick up tomatoes from the ground to throw while others lay in the pulp.
More From This Section
Some 160 tonnes of ripe tomatoes were offloaded from trucks into a crowd of 22,000 people, about two-thirds of them foreigners.
The town of around 10,000 people has since 2013 charged non-residents a participation fee to control the growing crowds who flock to the event.
Then in 2002, Spain's tourism secretary named the Tomatina a "festivity of international tourist interest" because of its popularity.
The Tomatina has inspired similar celebrations in Colombia, Costa Rica, Chile and the United States.