When a user visits a URL in a Next.js app using multiple root layouts with route groups, the framework first checks which route group folder matches the URL. Each route group is a folder named with parentheses, like (admin) or (marketing). Next.js then loads the root layout file inside that group folder, for example app/(admin)/layout.tsx. After loading the layout, it renders the nested pages inside that group, such as app/(admin)/dashboard/page.tsx. If the URL does not match any route group, Next.js falls back to the default root layout at app/layout.tsx and renders the root page. This system helps organize large apps by grouping routes and layouts logically. The execution table shows how different URLs load different layouts and pages step-by-step. Variables like URL, route group, layout loaded, and page rendered change as the app processes each request. Understanding this flow helps beginners see how Next.js picks the right layout for each route group.