Dehradun is named after the term "dera" meaning camp and "dun" meaning valley, referring to the military encampment located in the valley during British rule.