In computer programming, data types are used to define the nature and characteristics of data stored in variables. They determine the operations that can be performed on the data and the way the data is stored in memory. These are some of the fundamental data types in programming languages. Depending on the programming language, there may be additional built-in data types or the ability to define custom data types.