stylistic:style_transfer, quality:correction
Captivity

The Egyptians were among the earliest people to keep giraffes in captivity and shipped them around the Mediterranean. The giraffe was among the many animals collected and displayed by the Romans. The first one in Rome was brought in by Julius Caesar in 46 BC. With the fall of the Western Roman Empire, the housing of giraffes in Europe declined. During the Middle Ages, giraffes were known to Europeans through contact with the Arabs, who revered the giraffe for its peculiar appearance.

Individual captive giraffes were given celebrity status throughout history. In 1414, a giraffe from Malindi was taken to China by explorer Zheng He and placed in a Ming dynasty zoo. The animal was a source of fascination for the Chinese people, who associated it with the mythical Qilin. The Medici giraffe was a giraffe presented to Lorenzo de' Medici in 1486. It caused a great stir on its arrival in Florence. Zarafa, another famous giraffe, was brought from Egypt to Paris in the early 19th century as a gift for Charles X of France. A sensation, the giraffe was the subject of numerous memorabilia or "giraffanalia".

Giraffes have become popular attractions in modern zoos, though keeping them healthy is difficult as they require vast areas and need to eat large amounts of browse. Captive giraffes in North America and Europe appear to have a higher mortality rate than in the wild, the most common causes being poor husbandry, nutrition, and management. Giraffes in zoos display stereotypical behaviours, particularly the licking of inanimate objects and pacing. Zookeepers may offer various activities to stimulate giraffes, including training them to take food from visitors. Stables for giraffes are built particularly high to accommodate their height.