The military of the Han dynasty was the military apparatus of China from 202 BC to 220 AD, with a brief interregnum by the reign of Wang Mang and his Xin dynasty from 9 AD to 23 AD, followed by two years of civil war before the refounding of the Han.