Tainan County
After the handover of Taiwan from Japan to the Republic of China in 1945, Danei was organized as a rural township of Tainan County. On 25 December 2010, Tainan County merged with Tainan City and Danei was upgraded to a district of the city.