A granary is a building or room (usually in a barn) that holds grain. It keeps the grain dry so it does not spoil, and keeps it away from animals that would eat it. They are an important part of a farm. If the grain is lost, eaten by pests, or ruined, the farmers might starve or lose much money.