3d animation cartoon ibn battuta visit he Great Wall of China was built centuries before Ibn Battuta's time, primarily during the Qin, Han, and Ming dynasties, and served as a defensive fortification against invasions from the north. Ibn Battuta's writings, known as the Rihla or "Travels," document his experiences and observations during his travels, but they do not include any mention of visiting China or its Great Wall.