Constants are fixed values that do not change during script execution. They are defined using the define() function or the const keyword. Unlike variables, which can be altered, constants remain the same throughout the script, ensuring that their values are consistent and reliable.