A variable is a symbolic name used to store data values that can change or vary throughout the execution of a program. Variables play a crucial role in programming, helping developers manage and manipulate data efficiently.