The key is to tell Steam where it needs to store your games, so it can install them in the right place and knows where to find them when you want to play.
This process is important whether you're copying an existing Steam library to an external drive or setting up a brand-new one from scratch to download all your games.