How do you avoid arguments in a relationship.

When your partner keeps doing things that bother you. How do you let it not get to you as much.