External variables in programming are those that are defined outside of any function, class, or module, making them accessible throughout the entire program. These variables play a crucial role in sharing data across different parts of a program and maintaining state information between various function calls or modules.