A plugin is an existing piece of code that adds a specific functionality to a website. Plugins enable website owners to add certain features to their website above and beyond what WordPress offers. They can be free or paid, depending on the functionality and complexity.