The Earth's core, mostly made of liquid iron, is stirred by convection which leads to our magnetic field.<br>These movements can also transport angular momentum and exchange it with the solid mantle, inducing variations in the length of day.<br>I will present recent simulations of the dynamics of the core and of the magnetic field, and the implications for the both the core-mantle boundary and the length-of-day variations.<br