Barcelona has an excellent public transportation system that includes metros, buses, and trams. It's affordable and covers most areas of the city. Consider renting a bike or just walking for scenic routes, as many of the city's attractions are centrally located.