"Shrek" is a 2001 American computer-animated fantasy comedy film loosely based on the 1990 fairy tale picture book of the same name by William Steig.

"Shrek" premiered at the 2001 Cannes Film Festival, where it competed for the Palme d'Or, making it the first animated film since Disney's Peter Pan (1953) to be chosen to do so.

Donkey is a fictional fast-talking donkey created by William Steig and adapted by DreamWorks Animation for the "Shrek" franchise. He is voiced by Eddie Murphy.

Donkey first makes his debut at a sale of mythical characters from beloved fairy-tales being sold to the evil Lord Farquaad's knights. An old woman attempts to sell Donkey albeit unsuccessfully at first, but magic pixie dust accidentally is unleashed upon him from a caged fairy, thus giving him the temporary ability to fly. However, the spell unleashed upon Donkey then breaks and he falls to the ground, being chased by Farquaad's knights into the woods, where he meets Shrek. Shrek is at first reluctant to meet the talkative and annoying Donkey, who begins following him around.

Donkey requests to stay with Shrek since he has no one else. Shrek refuses, but finally gives in due to Donkey's constant begging, however, he only allows him to stay outside of his house and only for one night.

More Info: en.wikipedia.org