A data types define the kind of information a variable can hold, such as numbers, text, or complex structures, helping the interpreter understand how to handle and manipulate that data with a script.