"Reaction formation" underlies many people's homophobia.
Reaction formation is a sort of mental resistance component in which a man sees their actual emotions or wants to be socially or legitimately unsuitable, thus they endeavor to persuade themselves or others that the inverse is genuine - frequently in an extremely misrepresented execution.