The problem
You want different layouts for different sections of the app (marketing vs app), but you don't want /marketing/… in the URL. Route groups solve this.
The convention
Wrap a folder name in parentheses: (marketing), (app). The parens are stripped from the URL, so app/(marketing)/about/page.tsx serves /about, not /marketing/about.
What you can do with them
- Different layouts per section without affecting URLs.
- Multiple root layouts — each group can declare its own
layout.tsxat the root of the group, including different<html>and<body>. - Organization-only grouping when you just want to keep a folder tree tidy.