As mentioned above, after killing the rat king, his head will fall off him. Holding your head in your hand, pinch on the screen to summon rats. Rats will protect you from all hostile mobs.
Rats and the rat king appear in caves. They are very difficult to find, it depends on the lighting in the cave. But if you find a few rats, know that the rat king is somewhere nearby!