Zheng He was a life-long friend of Ming Dynasty Emperor Zhu Di. As was very common in the time of the Ming, Zheng He was a eunuch. There were various reasons why some men were castrated; often it was to be made more loyal servants. It is not clear why Zheng He was made a eunuch. However, as witnessed by his friendship with the Emperor, eunuchs were not necessarily looked down upon. After the huge naval fleet ordered by Zhu Di was built, he named Zheng He as its commander-in-chief. It was the first time in Chinese history, that a eunuch was given such authority and power. However, Zhu Di trusted Zheng He's loyalty and ability. Zheng He did well, serving as the fleet commander on most of the treasure fleet's voyages, including its seventh and last mission.