A granary is a storehouse or room in a barn for threshed grain or animal feed. Ancient or primitive granaries are most often made out of pottery. Granaries are often built above the ground to keep the stored food away from mice and other animals.
From ancient times grain has been stored in bulk. The oldest granaries yet found date back to 9500 BC and are located in the Pre-Pottery Neolithic A settlements in the Jordan Valley. The first were located in places between other buildings. However beginning around 8500 BC, they were moved inside houses, and by 7500 BC storage occurred in special rooms. The first granaries measured 3 x 3 m on the outside and had suspended floors that protected the grain from rodents and insects and provided air circulation.
These granaries are followed by those in Mehrgarh in the Indus Valley from 6000 BC. The ancient Egyptians made a practice of preserving grain in years of plenty against years of scarcity. The climate of Egypt being very dry, grain could be stored in pits for a long time without discernible loss of quality. The silo pit, as it has been termed, has been a favorite way of storing grain from time immemorial in all oriental lands. In Turkey and Persia, usurers used to buy up wheat or barley when comparatively cheap, and store it in hidden pits against seasons of dearth. In Malta a relatively large stock of wheat was preserved in some hundreds of pits (silos) cut in the rock. A single silo stored from 60 to 80 tons of wheat, which, with proper precautions, kept in good condition for four years or more.
Simple storage granaries raised up on four or more posts appeared in the Yangshao culture in China and after the onset of intensive agriculture in the Korean peninsula during the Mumun pottery period (c. 1000 B.C.) as well as in the Japanese archipelago during the Final Jōmon/Early Yayoi periods (c. 800 B.C.). In the archaeological vernacular of Northeast Asia, these features are lumped with those that may have also functioned as residences and together are called 'raised floor buildings'.