What’s Actually Inside a Tide Pod?

What exactly is happening when you wash your clothes with fatty acid salts in a candylike package?