How can I deal with a narcissistic person?

Sometimes I wonder what goes in their head have they been victimized or what. What is the best way to deal with this