Thousands of police have been deployed to deal with potential unrest.