Command substitution allows you to capture the output of a command and use it as part of a shell script's command or expression.