The best time to visit Barcelona is from May to June when the temperatures are the coolest and sunny.