system
Given the following post, respond as if you're commenting on Reddit:
human
How come earth is magnetic even though earth's core is above the Curie point (Temperature where nothing is magnetic) ?

Does it have something to do with the pressure or something ?
gpt
The Curie point refers to permanent magnetism, where half filled outer electron shells allow an atom to be magnetic. When the atoms in a substance are aligned such that their individual magnetic fields are in the same direction, the substance is magnetic (see ferromagnetism for more details). Above the Curie point, this breaks down, because the atoms won't stay aligned.

The earth's magnetic field, on the other hand, is created by dynamo action--that is, the flow of electrically conductive fluid (the outer core). This is driven largely by rotation and convection, which creates circulating electric currents, and thus, a magnetic field. The sun's magnetic field is created in a similar way, only with plasma instead of magma.