Public transport in Barcelona consists of metro, bus, tram and train networks and generally works very well. Taxis are also a popular option, often proving cheaper than in other places, although rates have risen steadily in recent years. Private vehicles are more problematic due to cost and availability of parking and traffic.
http://www.barcelona-metropolitan.com/visiting/getting-around/