What exactly is the Great Pacific Garbage Patch?

It’s basically a big patch of floating rubbish in the middle of the Pacific Ocean, but what is it made of and how did it get there?