For purposes of air conditioning, the Han dynasty craftsman and engineer Ding Huan (fl. 180 CE) invented a manually operated rotary fan with seven wheels that measured 3 m (10 ft) in diameter; in the 8th century, during the Tang dynasty (618–907), the Chinese applied hydraulic power to rotate the fan wheels for air conditioning, while the rotary fan became even more common during the Song dynasty (960–1279).