Dermoid cysts occur when tissue collects under the skin. These cysts may contain hair, teeth or nerves. They usually appear at birth. Dermoid cysts often form on your head and neck but may also be in your ovaries, on your spine or elsewhere in your body