Meaning of “take your mind off sth” - Learner’s Dictionary

take your mind off sth

to stop you thinking about something unpleasant:

Talking to him took my mind off the pain.

(Definition of “take your mind off sth” from the Cambridge Learner’s Dictionary © Cambridge University Press)