Todistract is to draw someone's attention away from something and on to something else. (verb)
When you talk to your friend in class, this is an example of a situation where you distract your friend from what the teacher is saying.
When you avoid thinking about a problem by keeping busy, this is an example of a situation where you distract yourself from thinking about the problem.