Wei (weɪ; ), commonly spelled Wey to distinguish from the contemporary larger Wei (魏) state, was an ancient Chinese state that was founded in the early Western Zhou dynasty and rose to prominence during the Spring and Autumn period. Its rulers were of the surname Ji (姬), the same as that of the rulers of Zhou. It was located in modern northeastern Henan Province, east of Jin (and later Wei 魏), and west of Cao. The history of Wey dates back to the beginning of the Zhou dynasty and the Rebellion of the Three Guards. After the Duke of Zhou successfully defeated the rebellion, Kang Shu, a younger brother of King Wu of Zhou was given a fief centred on Zhaoge, the capital of the Shang dynasty, which had been the centre of the rebellion. The State of Wey was at its peak during the early Spring and Autumn period, under Duke Wu of Wey, who reigned for 55 years. In the reign of subsequent rulers, however, the state was plagued by succession troubles, until Duke Yi of Wey took the throne; his dissolute rule and obsession with cranes weakened the state, and in the eighth year of his reign the Rong peoples successfully attacked the capital at Zhaoge, killing the Duke and nearly destroying the state as well (660 BCE). It was only with the aid of Duke Huan of Qi that the state was eventually restored, with its capital moved to Chuqiu. In 632 BCE Wey was once conquered by Duke Wen of Jin, because when Duke Wen (called Chong'er then) exiled to Wey, Duke Wen of Wey hadn't treated him well, and Duke Cheng of Wey (son of Duke Wen of Wey) was nearly poisoned by Duke Wen of Jin, but eventually the state was restored. (Before the Battle of Chengpu, when Chu was attacking Song, Jin attacked Wey and Cao as a diversion.) In 492 BCE Duke Chu of Wey (出公) succeeded the throne from his grandfather Duke Ling (灵公), while his father Kuaikui (蒯聩), who was the heir of Duke Ling, had been deposed and exiled. To get the throne, Kuaikui fought against his own son and managed to exile Duke Chu in 481 BCE, and was titled as Duke Zhuang II (后庄公), but was killed three years later.