Macheng () is a city in northeastern Hubei province, People's Republic of China, bordering the provinces of Henan to the north and Anhui to the northeast. It is a county-level city under the administration of Huanggang City and abuts the south side of the Dabie Mountains. The city's administrative area covers about 3600 km2 , and includes some 700 villages and small towns. Total population was 1.2 million at the last census.