Beware of spyware

How does spyware get its hooks into your computer and what can you do to remove it?