How does a 'prediction market' work?

Not sure exactly how this works, except that bettors will bet on ANYTHING!