Materialism is an atheistic philosophy that says that all of reality is reducible to matter and its interactions. It has gained ground because many people think that it’s supported by science. They think that physics has shown the material world to be a closed system of cause and effect, sealed off from the influence of any non-physical realities --- if any there be. Since our minds and thoughts obviously do affect the physical world, it would follow that they are themselves merely physical phenomena. No room for a spiritual soul or free will: for materialists we are just “machines made of meat.”
Quantum mechanics, however, throws a monkey wrench into this simple mechanical view of things.