Folding@home works by contacting multiple servers using a client server installed on a PC. As it contacts these servers, the client runs on spare CPU time, uploading work units to the server.
This is a great way to make spare computing power useful, even if on idle. The programme also runs in the background and on low CPU priority, and you won't even notice it running at all.
You can learn more about the project here.