Using Google Tag Manager, you can define and manage various pieces of JavaScript tracking code (so-called tags) for your website. Google Analytics tracking code would be one of them. You can flexibly change your tracking without having to deploy the website each time.
As opposed to Google Analytics, Google Tag Manager is not an analytics tool that generates reports but is used to have data sent from a website to other marketing and analytics tools, including Google Analytics.