Затягивать гайку - to tighten a nut.
Курить и глубоко затягиваться - to smoke and inhale deeply.

All these forms derived from the word тянуть - to pull / to drag. Every meaning is more or less related to these actions.