system
Given the following post, respond as if you're commenting on Reddit:
human
How do magnets REALLY work?

Their power is unlimited. How are they made? Where does the charge come from? How can they be so powerful? Do they work with the Earth's own magnetic field or are they separate?

So many unanswered question which I hope AskScience can answer.

Thanks.
gpt
A moving charge creates a magnetic field. You can treat an atom has having an electron moving around in a circle (this isn't literally the case, but it can be useful to look at it this way). This means each atom may have a little magnetic field associated with it. If you have many atoms together, all the fields will point in different directions and cancel out. In certain materials, however, the atomic spins align with each other, so there is a net magnetic field.