Mixing is the process of shaping your song by blending all the individual tracks together using compression, EQ, reverb, delay, and various other effects to make everything sit perfectly.
Mastering comes after mixing and gives your track its final polish. It enhances clarity, adjusts overall loudness, and ensures your song sounds professional and consistent across all platforms.