At first, the ancients chose 28 stars to compare the movements of the sun, the moon, gold, wood, water, fire and earth as observation marks. The meaning of "lodge" is similar to the "palace" of the zodiac, indicating the position of the sun, moon and five stars. In the Tang Dynasty, Twenty-eight Hostels became the main body of the twenty-eight celestial bodies, and these celestial bodies were still named after Twenty-eight Hostels. Different from Sanyuan, as a celestial body, Twenty-eight Hostels are mainly used to divide the ownership of star officials. The 28 huts start from Kakuk and are arranged from west to east, in the same direction as the sun and the moon:
Seven Oriental Hostels: Angle, Sound, Correlation, Room, Mind, Tail and Body;
Seven nights in the north: sinus, cow (morning glory), female (bearded female), emptiness, danger, house (barracks) and wall (east wall);
Seven Nights in the West: Que, Lou, Stomach, Chang, Bi, Gou and Shen;
Seven nights in the south: essence (cave essence), ghost (Yu ghost), willow, star (seven stars), Zhang, wing and Yi.