The University of Barcelona is a public university located in the city of Barcelona, Catalonia in Spain.