Complex sentence: Carpet is one of the supporting characters in the film and he allies with Princess Jasmine.
Split into simpler sentences: Carpet is one of the supporting characters. He allies with Princess Jasmine.