Spyware is computer software that collects personal information about users without their informed consent. The term Spyware, which was coined in 1995 but wasn't widely used for another five years, is often used interchangeably with adware and malware.
Spyware is a tracking software that will get into ur computer through malicious sites or when ur downloading something or thorugh some banners, some of the get execute themselves and some need permission to install.
The work of spyware is to send ur information, id, password, credit card number, ur private information, i.e to stastical data back to particular site or banner advertisers , through this information they can hack ur account or as u know can use ur credit card , etc ...mind it, it is not antivirus :) .. thats why its better to keep away from wire transfers
Read more on spyware-prevention...