A dream that you are having an affair usually does not mean that you wish to have an affair.
Dreaming that you are having an affair with someone other than your spouse or partner can be a way of satisfying your curiosity about what it would be like to be in a relationship with someone else, without causing harm to your current relationship in waking life.
The person you are having an affair with in your dream can represent an aspect of your spouse or partner that they usually keep hidden.
Your dream can mean that you wish to see more of this quality in your partner or spouse.
If you dream that you have an affair with a person you do not know in waking life, that person can represent a quality of yourself that you need to develop more or a side of yourself that you need to accept.
Having an affair with someone of the opposite sex can mean that you are trying to be more comfortable with your masculine side, if you are a woman, or your feminine side, if you are a man.
If you dream that you are attending an affair, such as a wedding or other large celebration, you may be expecting good news or you may want to receive praise for something that you have accomplished.
The way you behave around the other people at the affair can tell you something about how you relate to other people in waking life.
If you dream that you are having an unfair, it does not necessarily mean that you want to be unfaithful in real life. You could be having a rough time in your relationship, or you could be feeling unsatisfied emotionally or sexually, and wondering what it would be like to be in a relationship with someone else.
On the other hand, you could be perfectly happy and satisfied in your current relationship, and your dream could just be a way of expressing your natural curiosity about what it would be like to have a different relationship or to have sex with someone else. Your dream allows you to do this in a safe way, without harming you or the significant person in your life.
If you dream that you are having an affair with someone you know, you might want to become closer to them in a non-sexual, non-romantic way. You might also admire them and want to take on some of their good qualities.
If you dream of an affair with someone that you don’t know in real life, that person may represent a part of yourself that you don’t usually acknowledge. The affair in your dream could represent a need to accept that part of yourself.
An affair in a dream can also represent anything that is risky or that you feel is morally wrong.