It comes a week after two Islamist militant attacks in Catalonia left 15 people dead.
Holding placards and banners which read "I am not afraid", the march was led by emergency workers, shopkeepers and residents of the city's Las Ramblas boulevard, where a van was deliberately driven into pedestrians.