Tension is a reaction force applied by a stretched string (rope or a similar object) on the objects which stretch it. The direction of the force of tension is parallel to the string, towards the string.