What is Reaction Formation?

A reaction formation is when a person feels the urge to do or say something and then actually does or says something that is the opposite.For example a man who is gay ends up having open heterosexual relationships and then talks bad about gay people.