It's not magic, it's

Science!

Science is the process and the body of knowledge that enables us humans to know nature. So far, it’s the best idea we’ve ever had.