Deno uses URL-based imports to load modules. When the program runs, Deno reads the import statement with a URL. It checks if the module is already cached locally. If not, it downloads the module from the URL and saves it in a cache. Then it executes the module code so the exported functions or variables are ready to use. When the same module is imported again, Deno uses the cached version instead of downloading again. This makes repeated imports faster and allows offline use after the first download. Using URLs for imports means Deno can fetch modules directly from the web without needing a separate package manager. This simplifies managing dependencies and keeps the code easy to share and run.