Mason and Phil are two chimpanzees that appear in the Madagascar universe. Both are very sophisticated in the movies.
In the first film, Mason is seen waking up to dig in the trash can near his cage. He gets a newspaper and a coffee. Mason wakes a still sleeping, Phil, calling him a filthy monkey. Later that night, during Marty's party, they hear a birthday song with the lyrics "You look like a monkey, and. smell. like one too!" The other animals laugh, but Mason spits out his tea (he was holding a teacup) in surprise and embarrassment. Behind him, Phil sniff his armpit then faints off his branch.
When Alex, Melman and Gloria (who breaks a brick wall) escape to find a runaway Marty, Mason and Phil notice. Mason says Tom Wolfe's speaking at Lincoln Center and agrees with Phil to go throw poop at him. They, along with the other animals, are caught by the police at Grand Central Station.
It's sometime after that, we see them with the other animals (the main four and penguins) on a cargo ship to Africa. The chimps are across from the penguins. Skipper asks Mason for some reading assistance, Mason can't so he asks Phil. Phil only speaks with sign language and can read. When the ship docks at Madagascar, they appear with the penguins, Gloria and Melman to save Marty from the fossa, that had been attacking the lemur tribe, but they are outnumbered. Just then, Alex, who had overcome his hunting instincts, saved his friends, finally and chased the fossa away from the Lemur Territory forever. At the end of the movie, they are seen on the ship with Alex, Marty, Melman and Gloria, only to find out the ship is out of gas.
In the sequel they're on the plane with the Zoosters, the Penguins, King Julien and Maurice, departing Madagascar for New York. The penguin's fixtures to the plane fail, leading to a terrifying fall but the chimps calmly continue to play chess.
They crash in Africa and are asked by Skipper for thumb-assistance in fixing the plan. Phil curses in sign language, Mason replies amused "I should wash your hands out with soap." After stealing a few tour jeeps from humans, the penguins are amazed to see the chimps recruited more chimps to help with the building. Skipper's reaction at the huge work force is "Well I'll be a monkey's uncle!" Mason cool states "Oh I doubt that."
At appreciation for the collected chimps, Skipper says "I'd like to kiss you, monkey." Mason thinks about it for a second, then nonchalantly says "Oh alright, but you're so darn ugly." He kissed Skipper, lips on beak, without caring while the penguin is rather disgusted.
While it seems the chimps are consistently, if not chaotically, fixing the plane by night they're all on strike. Mason and Phil discuss wages with Skipper and Kowalski. Mason wishes to discuss maternity leave, but the penguins deny the 'commies' because they're all seemingly male. Gloria, Melman and Marty plead with Skipper so they can have the plane and save Alex, but Skipper is stubborn. Phil brings out scandalous pictures of Skipper with a hula doll for blackmail. A reluctant Skipper gives the chimps materiny leave and all the zoo animals, plus the extra chimps go to save Alex and his father from angry tourist.
During the adventure of saving the lions, the chimps work as a telephone/chain between the father and son (in a basket unconnected to the plane) and the other animals driving the plane. The messages are horribly altered, and all end in Basset Hound, which almost leads to killing the lions but breaking the dam for the rest of the Savannah.
The two chimps are seen leaving with the honey-mooning penguins (Skipper and his doll) away in the plane with treasure found (by the Savannah animals who were searching for water).