When it comes to visiting Barcelona, you should optimally have 3-5 days in the city to see all the major sites.