I simple words the main difference between a library and a framework is - 

 A library provides tools for developers to use as they like.

 While a framework provides a structure for developers to follow.