Pete

Pete is a follower of Maleficent and former captain of a steamboat, Pete has become a commander of Maleficent's Heartless army. Pete used to live in Disney Castle, but was cast into another dimension by King Mickey for causing mischief. His original name was Pegleg Pete, and he holds the distinction of being the oldest continuous Disney character, appearing as early as Walt Disney's Alice Comedies.

Although he plays an antagonistic role in Kingdom Hearts II, he is mostly just a comic-relief character and doesn't pose much of a threat, as Sora himself states.

However, in his own way, Pete did serve a very unique role. In the first game, Maleficent held meetings at Hollow Bastion with the other Disney villains, in which they would receive orders from her directly. However, in the second game, Maleficent seems to have been a lot busier, looking after important matters that happened after her death. As such, she was never able to hold direct meetings, although she seems to have had connections with the other villains like Scar and Barbossa. Instead, Pete served as a sort of emissary, delivering orders or possibly recruiting allies in the field.

History
Many, many years before Kingdom Hearts II, Pete worked as the captain of a steamboat. His deck hand was none other than the future king of Disney Castle, Mickey Mouse. This past association causes Pete to refer to Mickey as "the Boat-Boy King."

At some undetermined point, "a long time ago," Pete turned to evil, and King Mickey banished him to another dimension. He found aid in the form of Maleficent, who helped him escape his exile. In return, Pete became a commander in her Heartless army, and traveled around many worlds building up more and more legions of Heartless to help her plot of world-domination.

Kingdom Hearts II
Pete is first encountered outside Yen Sid's Tower, having sent in a squad of Heartless to turn the powerful sorcerer Yen Sid into a Heartless to act as Pete's bodyguard. But Sora, Donald and Goofy showed up, informing him of Maleficent's demise, and Pete fled.

He returned to Hollow Bastion to see if what he'd heard was true and found the fortress devoid of activity, until Maleficent's pet raven, Diablo appeared, a precursor to her own return. When she finally made her way back, he informed her of the breakdown of her villain's alliance, and the pair set their sights on raising more Heartless and finding a new castle.

Pete was present to help Hades by kidnapping Megara and distracting Hercules and Sora long enough for Hades to send the Hydra to the Coliseum, Barbossa by calling on the Illuminator to help Barbossa fight Sora and Jack Sparrow and Scar, but he doesn't fight in this world. With their respective attempts to snuff out their enemies, but all of their plots ended in failure. After being admonished by Maleficent, he began pining for the old days, causing a portal to Timeless River to open up. Going back into the past to steal Disney Castle's treasured Cornerstone of Light, which would enable Maleficent to take it over, Pete found unexpected resistance in the form of the Keyblade Master, and himself from the past. By that point, Past-Pete had not yet turned evil, and they thwarted the scheme. Sora never considered Pete much of a threat due to Pete's incompetence (Sora once describe him as "Not smart enough to tie his own shoes")

During the invasion of Hollow Bastion, Pete fled in the face of the Nobodies.

He and Maleficent turned up one last time in The Castle That Never Was, seeking to take it for their own. When Ansem the Wise's machine to encode Kingdom Hearts exploded, it caused the creation of thousands of Heartless. Knowing that the Keyblade Master and his friends were the only ones who could stop Xemnas, Maleficent volunteered to hold off the Heartless, on the condition that when they'd destroyed them all the Castle would be hers. Pete suggested fleeing, causing Maleficent to dismiss him, but a conversation with Mickey convinced him to stand and fight. They presumably take over the castle after Xemnas is defeated.

Pete's fear of Organization XIII, as opposed of Maleficent's delusory confidence, seems well-founded and his attempts to flee when facing the Nobodies may have been, in a way, the rational decision on his part.