In most cases, a solid foundation is required for proper installation and long-term stability. While gravel may be used as part of site preparation or drainage in some situations, metal buildings are typically installed on a level, compacted base such as a concrete slab. Installing directly on dirt is generally not recommended, as it can lead to shifting, moisture issues, and structural problems over time. A building specialist can help you determine the right foundation based on your site and building type.