To dream that you are being tortured indicates that you are feeling victimized or helpless in some relationship or situation. You feel that you cannot do anything. Alternatively, the dream suggests that you may exhibit some sadomasochistic desires. 

To dream that you are torturing someone or see others being tortured suggests that you are punishing yourself for your own negative or bad habits. You are projecting yourself onto the person or animal being tortured. Consider the symbolism of who is being tortured. Alternatively, the dream indicates repressed feelings of revenge which you are not able to act on in your waking life.