He was originally a little god in the heaven. During the banquet, he accidentally threw the beloved tabby cat of Queen Mother of the West into the lower world, so he was also thrown to the lower world to find the cat ancestor.
He incarnates as a jobless homeless man on Earth, and was originally a special policeman in the universe. He came to Earth to capture escaped criminals.