Tangled hair can be stubborn, and trying to yank them apart can pull on the skin of your scalp, hurting it. Use conditioners, oil, or detangling products suitable for your hair type to detangle your hair gently. However, if your scalp hurts too much, it might be because of underlying conditions that have made your scalp sensitive. Visit a dermatologist immediately in such a case.