Magic is one of the four basic damage and resistance types. It is both given and received in combat.
Needless to say, increased magic Resistance will decrease magic damage.
The other basic damage/resistance types: