Chinese legends attribute the domestication of rice to Shennong, the legendary emperor of China and inventor of Chinese agriculture.