To dream you are being punished suggests guilt or shame about something you have done. You may need to learn to forgive yourself and stop your habit of self-punishment.

To dream you are punishing another person indicates resentment towards that person. On the other hand, it may symbolize an unlikable personality trait you want to change.