Complete an episode as the heroes first. Once you have finished it, the same episode unlocks in a villain campaign, letting you replay the whole thing from the other side with a different roster of characters and abilities.
Each villain has their own gimmick, so the puzzles resolve differently the second time through.