Get to Know Yourself
You can't change people. They must want to change themselves. And you shouldn't expect them to conform to your way of thinking or doing things. Try to remind yourself that people's action and reaction are based on their own motives and intentions. You don't have to take things personally when dealing with difficult people.
But you can work on you. You can change the want you react and respond. Get to know your own motives and the reasons why you do what you do. What are you trying to achieve? Is it the best way or the only way?
Delay Your Emotional Response
Whether you feel like jumping, confronting or snubbing, pause for a moment, take a few deep breaths and calm down. Then respond in an opposite manner instead of how you have always reacted. When you do this, you are able to change your focus and at the same time giving your mind a different instruction and a new way to respond to a stimuli.
Another great thing will ensue. You will surprise the person you are dealing with and your action will also confuse him and change his focus. It will enable you to interrupt what was going on. If you act this way or in a similar positive manner a few more times or whenever the situation arises, people will change their perception about you and their behavior towards you will also change.
If you want to improve your skill in dealing with difficult people, listen attentively. Misunderstanding and miscommunication happen because many people don't really listen.
Pay attention to the one who is speaking to you even if he gets on your nerves. Don't interrupt or complete his sentences. Let him finish speaking. By giving your attention, he may soften and accept your views.
Talk it Over
When you confront aggressive people, they will usually fight back. Fighting will develop animosity. Walking away is always a good thing to do. But once everything is cooled down, dare yourself to sit down and communicate, even if he is the boss. Ask him why he acted the way he did.
When he has finished talking and justifying his motive, talk about how you felt. If you don't talk it over, you may have to go through the same episode again and will feel very frustrated.
Ignore and Move On
When all your attempts don't seem to work and you still can't get along, the last thing to do is to ignore him. He is the one who is having an issue. You can't change him, so leave him alone. If the difficult person is your boss, consider asking for a transfer to another department or changing your job.