Peel the butternut squash and slice it into thin, even half rounds. Uniform slices ensure even cooking and make the gratin easier to serve. Keep slices thin so they soften nicely while baking.
Melt butter in a saucepan and cook shallots and garlic until fragrant. Stir in flour, then add vegetable stock and cream while whisking. Add sage and seasoning, allowing the sauce to gently thicken.
Lightly butter your baking dish and spread some sauce on the bottom. Layer squash slices, sprinkle cheese, and repeat until ingredients are used. Finish with remaining sauce and cheese.
Cover the dish with parchment and foil, then bake at 400°F (200°C) for about 20 minutes. This step softens the squash and blends flavors beautifully.
Remove the cover and bake another 10 minutes until the cheese turns golden and bubbly. The uncovered baking creates that irresistible crispy top.
Let the gratin cool for a few minutes, then garnish with fresh chives or sage. Serve warm for the best creamy texture and flavor.