Members of the peasant rebellion led by Yemelyan Pugachev were exiled to the area in the 1770s, building the new town of Olensk in 1783. The town's name was derived from the Russian word "" ("olen"), meaning "stag", as still seen in the town's symbols. The town was renamed Vilyuysk after the river on which it stands in 1821.