In order to have a better understanding of spring we need to understand how spring works. Spring has gained it's popularity for Dependency Injection. Its only possible because Spring is a container of beans. You can imagine container like JVM. JVM is a container. When we create an object in java, it is the container or the JVM which is responsible to control the lifecycle of those objects.
Similarly Spring is a container. But it is a container of beans. It can contain as many objects as it wants. Those objects are completely managed by Spring, starting from creation to destruction.