In programming, a collection of routines stored in a file. Each set of instructions in a library has a name, and each performs a different task.