How does dry cleaning work?

Dry cleaning is easy: bring your sweaters into a shop, and pick them up a couple days later. But how does dry cleaning work?