What is malware and how do you deal with it

What is malware and how do you deal with it

What is malware and how do you deal with it? Please give quick explanation on common techniques and which ones are most effective to protect a device like a laptop or desktop PC.