>>17601978okay so the pokemon uses ~1/4th of its hp to make a doll. Every attack against it hits the doll instead, with a few exceptions.
Its useful mainly because you can limit the damage you take. The doll doesn't go away until its taken enough damage (based on how much hp you used to make it). There's a lot of ways to use a sub like other people are saying (for charging moves, leech/sub, baton pass), but that's the basics of it.