Pets are companion creatures that will follow the player. They are vanity items and don't help in combat. Some pets have special attributes unrelated to combat, such as scaring away creepers or skeletons, they can be summoned using the command "/pets".