It borders Berlin in the southwest and is one of the most prosperous cities in its agglomeration with approximately 4.7 million inhabitants.