Barcelona is a metropolitan city and is the second largest city in Spain after Madrid. Being the largest city in…