Musical tension is the sense of anticipation or unresolvedness in music, created through various elements like harmony, rhythm, and dynamics, which keeps the listener engaged. It is resolved when these elements return to a state of stability or rest, often providing emotional release or satisfaction.