 Hà Nội is divided into 12 urban districts, 1 district-leveled town and 17 rural districts.When Hà Tây was merged into Hanoi in 2008, Hà Đông was transformed into an urban district while Sơn Tây degraded to a district-leveled town.They are further subdivided into 22 commune-level towns (or townlets), 399 communes, and 145 wards.