Theory of mind refers to the ability to attribute mental states, such as beliefs, desires, and intentions, to oneself and others, and to understand that others have mental states that may differ from one's own. It is a crucial cognitive capacity that develops during childhood and underlies our social interactions and understanding of the world around us.