Presented as a gift to the Yongle Emperor of the Ming dynasty, a giraffe represented the intensive fifteenth century connections between China and South Asia. We can safely assume giraffes are not native to South Asia and it was likely an accession gift from east African envoys of Malindi to Bengal’s sultan, Saif Al Din Hamzah. However, the sultan would not have been too impressed as the giraffe was re-gifted, finding its way to the Ming court in 1414
The gift was presented to the emperor as a qilin, a mythical creature which represents benevolence. Qilin are said to have the body of a deer, equine hooves, fish scales and a horn. Matching their strange form was a diet which consisted of “unhusked rice, beans and flour-cakes”. How such creatures managed to cook flour-cakes escapes me. The emperor himself was not too fussed about the creature, declaring:
“If my ministers devote themselves to their work day and night, and exhaust all efforts to govern the empire and bring benefit to it, the empire will be at peace. Even without a qilin, there is nothing that hinders us from governing well.” 
In spite of the apprehension, the Ming emperor reciprocated by providing velvet and silk; thus establishing cordial ties between the two polities. The ties were soon interrupted by Bengal’s internal turmoil. Raja Ganesh, a Hindu chieftain, had overthrown the Turkic Ilyas Shahi dynasty who had ruled the Bengal delta for seven decades. Incensed by Ganesh’s enthronement of his twelve year old son Jadu as the new sultan, the Sufi mystic Nur Qutub ‘Alam invited the neighbouring Jaunpur Sultanate to intervene. In an attempt to legitimise his rule, Jadu converted to Islam and took the name Jalal-Uddin. This dispelled Nur Qutub ‘Alam’s apprehensions, but did little to dissuade Jaunpur, who viewed the succession struggle as an opportunity to weaken their rival.
For six years official records remained quiet about any envoys sent between Bengal and the Ming court. It was in 1420, after Jalal-Uddin had domestically consolidated his regime, that Bengal officially requested China’s assistance against border excursions. In response, the Ming emperor sent a military expedition, leading to Jaunpur’s withdrawal from Bengal’s affairs. This may not have been possible without the qilin gift which facilitated a diplomatic relationsip six years prior.
References  Duyvendak, Jan Julius Lodewijk. “The True Dates of the Chinese Maritime Expeditions in the Early Fifteenth Century.” T’oung Pao 34, no. 1 (1938): 348-354  Church, Sally K. “The Giraffe of Bengal: a medieval encounter in Ming China.” The Medieval History Journal 7, no. 1 (2004): 22  Ibid., 25  Ibid.  Ibid., 26