I would say that all frameworks are libraries but not all libraries are frameworks. A library could be a small chunk of code that helps accomplish one little task, or it could be a huge framework. A framework is basically a large library or collection of libraries for building applications on.