-
Preheat the oven to 375°F. Grease a 9x13-inch baking dish with the softened butter.
-
Warm the milk. In a saucepan over medium heat, warm the milk until steaming, then remove from the heat.
-
Make the béchamel. In a separate saucepan, melt the butter over medium heat. Whisk in the flour and cook, whisking constantly, for about 1 minute, until lightly golden and fragrant. Gradually whisk in the warm milk, adding a little at a time and whisking well to keep the sauce smooth. Bring to a gentle simmer and cook for 5–7 minutes, whisking often, until thick enough to coat the back of a spoon. Add the garlic, thyme, salt, pepper, and nutmeg. Cook for another minute, then remove from the heat and let cool slightly.
-
Arrange the vegetables. Pour about half of the béchamel into the prepared baking dish. Working in small batches, stand the russet potato, sweet potato, and beet rounds upright in tight rows, alternating between the three vegetables to create a beautiful striped pattern. Season lightly with salt and pepper as you go.
-
Bake the gratin. Pour the remaining béchamel evenly over the vegetables, allowing it to settle between the slices. Cover tightly with foil and bake for 1 hour, until the vegetables are tender when pierced with a knife.
-
Add the cheese. Remove the foil and sprinkle the Gruyère evenly over the top. Return to the oven, uncovered, for another 20–25 minutes, until golden and bubbling. If the top browns too quickly, loosely tent it with foil.
-
Rest and serve. Let the gratin rest for 15 minutes before serving. Garnish with fresh thyme and enjoy!