Constants are fixed values that cannot be changed once defined. Unlike variables, constants do not use the dollar sign and remain the same throughout the script. They are commonly used for configuration values such as site names, version numbers, or database credentials.