Barcelona is a city located in the country of Spain. It is the capital of the autonomous community of Catalonia in northeastern Spain. Barcelona is a major Mediterranean port and commercial center known for its rich culture, history, and distinctive architecture. It is situated on the northeastern coast of Spain, facing the Mediterranean Sea, and is Spain's second-largest city after Madrid.