Magic or sorcery is the use of rituals, symbols, actions, gestures, and language with the aim of exploiting supernatural forces. The belief in and practice of magic has been present since the earliest human cultures and continues to have an important spiritual, religious, and medicinal role in many cultures today.
The belief that one can influence supernatural powers by prayer, sacrifice, or invocation dates back to prehistoric religions. It can be found in early records such as the Egyptian pyramid texts and the Indian Vedas.
Magic and religion are categories of beliefs and systems of knowledge used within societies. Some forms of shamanic contact with the spirit world seem to be nearly universal in the early development of human communities. They appear in various tribal peoples from Aboriginal Australia and Māori people of New Zealand to the Amazon, African savannah, and pagan Europe.
Magic is sometimes practiced in isolation and secrecy and often viewed with skepticism and suspicion by the scientific community. In non-scientific societies, a perceived magical attack is sometimes employed to explain personal or societal misfortune.
The term "magical thinking" in anthropology, psychology, and cognitive science refers to causal reasoning, often involving associative thinking, such as the perceived ability of the mind to affect the physical world (see the philosophical problem of mental causation) or correlation mistaken for materialist causation.