External libraries are pre-written code that can be imported into a program to provide additional functionality. They contain a collection of classes and methods that can be used to perform specific tasks without having to write the code from scratch.