Golden sourdough, melted mozzarella, and a thick layer of basil pesto turn a basic grilled cheese into something that feels a little more special without asking for much more effort. The outside gets crisp and buttery while the inside stays soft, stretchy, and fragrant with basil. Sun-dried tomatoes add a tangy, sweet bite that keeps each mouthful from tasting flat.
What makes this sandwich work is balance. Pesto brings fat, salt, and herbs, but it can also make bread soggy if you overdo it, so the layer needs to be generous without being sloppy. Fresh mozzarella melts into those long, gooey pulls, though it’s best sliced and patted lightly if it seems wet. Medium-low heat matters here too; a hot pan will brown the bread before the cheese has time to melt.
Below, you’ll find the simple layering order that keeps everything neat, plus a few smart swaps if you want to change the bread, make it dairy-free, or use what’s already in your kitchen.
The pesto stayed tucked inside instead of leaking out, and the mozzarella melted into the perfect stretch. I cooked it low and slow like you said, and the bread turned deep golden without burning.
Like this basil pesto grilled cheese? Save it for the days when you want a crisp, gooey sandwich with real flavor inside.
The Mistake That Turns Grilled Cheese Into a Soggy Mess
Pesto is the big flavor here, but it can also be the reason a sandwich falls apart. If you spread it too close to the crust or pile it on too thickly, the bread can soften before the cheese has a chance to melt. The fix is simple: keep the pesto on the inside faces only and let the butter live on the outside, where it can do its job in the pan.
Heat matters just as much as assembly. Medium-low gives the mozzarella time to melt through while the sourdough turns evenly crisp. If the pan is too hot, you’ll get dark bread and stubborn cheese, which is exactly the wrong trade. Thick bread helps here because it holds the filling without collapsing, and it stands up to the moisture from both pesto and tomatoes.
What the Mozzarella and Pesto Are Each Doing Here

- Sourdough bread — Thick slices give you structure and a sturdy crust. Thin sandwich bread can work, but it softens faster and doesn’t give the same crunch around the edges.
- Basil pesto — This is the seasoning, the fat, and the herb element all at once. Store-bought pesto works well if it tastes good on its own; homemade is great if you want a brighter basil flavor. If it’s very oily, stir it before spreading so the sandwich doesn’t get slick.
- Fresh mozzarella — This melts into those soft, stretchy strands that make the sandwich feel indulgent. Low-moisture mozzarella can be used, but the texture changes; it melts a little firmer and less creamy.
- Sun-dried tomatoes in oil — These add concentrated sweetness and acidity, which keeps the sandwich from tasting heavy. Drain them well so they don’t leak oil into the bread, but don’t rinse away all the seasoning if they’re packed with herbs.
- Butter — Softened butter spreads evenly and helps the bread brown without tearing. If you use cold butter, you’ll end up dragging the bread and patching over thin spots instead of coating it smoothly.
Building the Sandwich So the Cheese Melts Before the Bread Burns
Butter the Outside First
Spread the softened butter on the outer sides of all four bread slices before you touch the pesto. That keeps the filling area clean and makes it easier to assemble without smearing butter into the center. You want an even coating all the way to the edges, because any bare spot will toast pale.
Keep the Pesto on the Inside
Spread pesto generously on the unbuttered side of each slice. It should look bold and green, but not so thick that it squeezes out the sides when you press the sandwich together. If your pesto is loose, use a little less rather than risking a greasy pan.
Layer for Melt and Stability
Place the mozzarella on two slices, then tuck the drained sun-dried tomatoes over the cheese before closing the sandwiches. Putting the cheese closest to the bread helps it glue everything together as it melts. Press the tops down gently so the stack feels snug, but don’t flatten it hard or the filling will escape.
Cook Low and Patient
Set the skillet over medium-low heat and cook for 4 to 5 minutes per side. Listen for a gentle sizzle, not an aggressive crackle. If the bread is darkening too quickly, lower the heat and give the cheese more time; the best grilled cheese has a deep golden crust and a fully melted center, not one or the other.
Three Ways to Change the Sandwich Without Losing What Makes It Good
Use gluten-free bread
A sturdy gluten-free loaf can work, but pick one that toasts well and doesn’t crumble when flipped. The sandwich will still taste great, though the crust may be a little more delicate and the edges can brown faster, so keep the heat low.
Make it dairy-free
Use a dairy-free pesto and a melting plant-based mozzarella if you want the same shape and stretch. The flavor will be a little less rich than the original, so choose a pesto with plenty of basil and garlic to keep the sandwich lively.
Swap the tomatoes for a different bite
Roasted red peppers or thin tomato slices change the sandwich in a softer direction. Roasted peppers bring sweetness and a softer texture, while fresh tomato adds juice and needs to be patted dry so the bread doesn’t go soggy.
Use a different cheese blend
If you want a stronger melt, mix the mozzarella with provolone or fontina. You’ll lose a little of mozzarella’s mild creaminess, but you gain more stretch and a deeper savory note that works beautifully with pesto.
Storage and Reheating
- Refrigerator: Store leftovers for up to 2 days. The bread softens a bit, but it still reheats well.
- Freezer: Freezing isn’t ideal for this sandwich because the mozzarella and pesto can separate and the bread loses its crisp texture.
- Reheating: Warm it in a skillet over low heat until the crust crisps back up and the cheese loosens again. The microwave will make the bread limp before the center is hot.
Questions I Get Asked About This Recipe

Pesto Grilled Cheese
Ingredients
Equipment
Method
- Spread softened butter on the outside of each sourdough bread slice to coat the exterior evenly.
- Spread basil pesto generously on the inside (unbuttered) side of all four slices.
- Layer the sliced fresh mozzarella and the drained sun-dried tomatoes on two of the pesto-covered slices.
- Top with the remaining two bread slices, pesto-side in and buttered-side out, to form two sandwiches.
- Heat a cast iron skillet over medium-low heat, then add the sandwiches and cook 4–5 minutes per side, pressing gently with a spatula or by hand.
- Continue until the crust is deep golden brown and the mozzarella is fully melted, flipping once halfway through.
- Slice each sandwich in half and serve immediately while the cheese pulls.