When an action affects another person's body, French often uses an indirect object for the person and a definite article for the body part.
lui / leur / me / te … + verb + le, la, les + body part
verb + le, la, les + body part + à + person
Il lui a pris la main means “He took her by the hand”, Elle lui a coupé les cheveux means “She cut his hair”, and J'ai serré la main au directeur means “I shook the director's hand”. The owner is identified by an indirect object pronoun such as lui or leur, or by à followed by the person.
What it expresses
- An action affecting another person's body. In Il lui a serré la main “He shook his hand”, lui identifies the other person. The Académie française notes that an article usually replaces the possessive when the owner is clear. This applies to body parts and faculties of the mind, as in Il est blessé à la main “He has an injury to his hand” and Elle perd la mémoire “She's losing her memory”.
- An action affecting your own body. With a pronominal verb, the reflexive pronoun identifies the owner, as in Il se brosse les dents “He brushes his teeth” and Je me suis cassé la jambe “I broke my leg”. The body part is the direct object here, so cassé stays unchanged in elle s'est cassé la jambe. See Past participle agreement with pronominal verbs. When the subject already makes the owner clear, the article can be enough, as in Elle leva les yeux au ciel “She raised her eyes to the sky” and Levez la main “Raise your hand”. Larousse also gives the article in descriptions of posture, as in elles marchent les yeux baissés “they walk with their eyes downcast”.
- A physical sensation. The body part can be the subject and the person experiencing the sensation the indirect object. La tête me tourne means “I feel dizzy”.