A package of various pieces of code that add extra functionality to a product.

Modules are loosely related to the original product, in that they can connect to, interact with, and share resources with it.

Modularity is explained in more detail on Wikipedia.