How to prevent or deal with conflict?

How to react to a difficult situation?