to reveal a secret:

We wanted the party to be a surprise, but he let the cat out of the bag.