The mixing engineer finalizes a recorded piece of music by blending and balancing the various sonic elements to have the intended effect(s) and end with one final stereo track.
Mastering is defined as the process of optimizing audio to create the final version of a recording before distribution. The mastering engineer is responsible for critically listening to the material and ensuring that the record is complete.