To tie something so that it will not loosen or fall off.
To tie someone or something so that they cannot run away.