Cats will often rub their head on a person as a way of showing affection and marking them as part of their territory. Cats have scent glands in their faces, and they may also be trying to identify you by your scent. Cats may also rub their head on you as a way of seeking attention or showing that they trust you.