Mats form when loose hairs repeatedly twist around attached strands and the resulting tangle is not removed quickly. Matting can also be caused by poor detangling techniques, going too long without a trim, or failing to protect your hair at night.