Head-banging is a self-soothing technique for children, which some use when they are experiencing pain or discomfort. Some babies also use this technique when they are angry or frustrated.