Ingredients
Equipment
Method
- Preheat oven to 375°F (190°C). Lightly grease a 9x13 inch baking dish with olive oil. Peel potatoes and slice them very thinly, about 1/8 inch thick. A mandoline slicer is highly recommended for even slices. Set aside.
- In a large saucepan, melt butter over medium heat. Add flour and cook, whisking constantly, for 1-2 minutes to create a roux.
- Gradually whisk in the warmed milk, a little at a time, ensuring no lumps form. Continue to whisk until the sauce thickens, about 5-7 minutes.
- Remove from heat. Stir in salt, black pepper, garlic powder, and cayenne pepper (if using). Add 1.5 cups of the shredded sharp cheddar cheese, stirring until melted and smooth.
- Arrange one-third of the sliced potatoes in an even layer in the prepared baking dish.
- Spoon one-third of the cheese sauce evenly over the potato layer.
- Sprinkle half of the diced ham and half of the Gruyere cheese (if using) over the sauce.
- Repeat layers: another one-third of potatoes, another one-third of sauce, and the remaining ham and Gruyere cheese.
- Finish with the last layer of potatoes, followed by the remaining cheese sauce.
- Cover the baking dish tightly with aluminum foil. Bake for 45 minutes.
- Remove the foil, sprinkle the remaining 1/2 cup of shredded cheddar cheese over the top.
- Return to the oven and bake uncovered for another 15-20 minutes, or until the potatoes are tender (a knife should easily pierce through) and the top is golden brown and bubbly.
- Let the casserole rest for 10-15 minutes before serving. This allows the sauce to set. Garnish with fresh chopped parsley, if desired.
Notes
For a richer flavor, you can sauté a finely diced small onion or shallot with the butter before adding the flour. To make ahead, assemble the casserole up to step 9, cover tightly, and refrigerate for up to 24 hours. Add 10-15 minutes to the covered baking time if baking from cold. Leftovers can be stored in an airtight container in the refrigerator for up to 3 days.
