You can handle a difficult boss or coworker by staying professional, focusing on solutions instead of problems, and communicating effectively. If necessary, you can also seek help from human resources or a supervisor.