The Twelve animals (十二生肖 shí'èr shēngxiào, or colloquially 十二屬相 shí'èr shǔxiàng) representing the twelve Earthly Branches are, in order, the rat, ox, tiger, rabbit, dragon, snake, horse, sheep (or goat), monkey, rooster, dog, and pig (or boar).
A legend explains the sequence in which the animals were assigned. Supposedly, the twelve animals fought over the precedence of the animals in the cycle of years in the calendar, so the Chinese gods held a contest to determine the order. All the animals lined up on the bank of a river and were given the task of getting to the opposite shore. Their order in the calendar would be set by the order in which the animals managed to reach the other side. The cat wondered how he would get across if he was afraid of water. At the same time, the ox wondered how he would cross with his poor eyesight. The calculating rat suggested that he and the cat jump onto the ox's back and guide him across. The ox was steady and hard-working so that he did not notice a commotion on his back. In the meanwhile, the rat snuck up behind the unsuspecting cat and shoved him into the water. Just as the ox came ashore, the rat jumped off and finished the race first. The lazy pig came to the far shore in twelfth place. And so the rat got the first year named after him, the ox got the second year, and the pig ended up as the last year in the cycle. The cat finished too late to win any place in the calendar, and vowed to be the enemy of the rat forevermore.