Babies who sleep at night scratching their heads and ears may be caused by otitis media, eczema, skin allergies and other reasons. 1. Otitis media: Otitis media refers to an infection that occurs in the middle ear, usually caused by viruses or bacteria that cause inflammation in the area behind the eardrum. For infants, the symptoms mainly manifest in ear scratching and fever, so infants sleep scratching and ear scratching may be caused by otitis media. 2. Eczema: Eczema is a chronic, inflammatory, itchy skin disease, the rash is polymorphic, symmetrical distribution, itching is obvious, acute symptoms are mainly manifested as erythema, edema, chestnut-sized papules, papules, blisters, etc., babies sleep scratching and scratching the ears may be because of itching, so it may be caused by eczema. 3. Skin allergies: if the baby touches something that makes his skin allergic, the skin may get a red rash and itchy, and the baby will keep scratching his head and ears, so the baby’s sleep scratching and scratching ears may also be caused by skin allergies. If the baby sleeps at night scratching his head and ears, it is recommended that parents take the baby to the hospital as soon as possible to check by the doctor to clarify the cause of the disease, to give targeted treatment.