When the Tang dynasty started to fall apart, Vietnam revolted and won their independence. Both the Mongols and and future Chinese dynasty would try to capture it, but would have no luck in doing so. Even though this happened, there was still some cultural exchanges. China was given Champa rice, and the Vietnamese were given Buddhist ideologies, military practices, as well as irrigation and agricultural technologies.