Vibrant green pesto, creamy ricotta, and golden mozzarella turn zucchini into a lasagna that eats like a real main dish, not a compromise. The roasted zucchini stays tender without collapsing into a watery mess, and the pesto gives every layer a sharp basil bite that keeps the whole pan tasting fresh instead of heavy. It’s the kind of baked dinner that slices cleanly after a short rest and still feels generous enough for a table full of hungry people.
The trick here is treating the zucchini before it ever touches the dish. Salt pulls out excess moisture, and a quick roast finishes the job so the layers don’t flood the pan. That step matters more than any extra cheese or thicker sauce ever could. The ricotta mixture also needs enough seasoning to stand up to the pesto, because once the pan goes into the oven, the basil and garlic mellow slightly and the whole dish needs that backbone.
Below you’ll find the little details that keep this from turning soupy, plus a few smart swaps if you want to lean it heavier on vegetables, make it dairy-free, or use a store-bought pesto without losing the spirit of the dish.
The zucchini held its shape and the layers sliced clean after resting. I was worried about it getting watery, but roasting it first fixed that completely, and the pesto under the mozzarella was the best part.
Pesto zucchini lasagna with golden mozzarella and clean, sliceable layers deserves a spot in your recipe saves.
The Fastest Way to Ruin Zucchini Lasagna Is Skipping the Moisture Step
Zucchini looks sturdy, but it releases a lot of water once it hits heat. If you layer raw zucchini straight into the pan, the ricotta loosens, the pesto gets diluted, and the bottom turns into a puddle before the top ever browns. Salting the planks first draws out that water, and the short roast finishes the job by drying the surface enough that the layers hold together.
The other mistake is building the dish too thick with pesto. Pesto should taste bright and herbal here, not like a heavy sauce trying to bury the vegetables. A thin, even layer in each section is enough because the cheese and zucchini already bring richness.
- The salt is there to pull moisture out of the zucchini before baking.
- The roast at 425°F gives the planks a little structure so they don’t collapse in the oven.
- Resting after baking matters just as much as the prep. Cut it too soon and the layers slide apart.
What Each Ingredient Is Actually Doing in This Pesto Zucchini Lasagna

Zucchini: This is the structure of the dish, so choose firm zucchini with smooth skin and slice them evenly. Thin planks work best because they soften enough to eat neatly but still support the layers. If yours are extra large and seedy, scoop out the soft center after slicing and use the firmer outer sections.
Fresh basil: Basil is what makes the pesto taste alive instead of flat. You can use a good store-bought pesto in a hurry, but fresh basil gives a sharper, greener finish that stands up better after baking. Pack the leaves firmly when measuring so the pesto doesn’t come out thin.
Pine nuts and parmesan: Pine nuts bring the classic creamy richness, while parmesan adds salt and depth. If pine nuts are pricey or hard to find, walnuts are the best swap, though the pesto will taste a little earthier. Use freshly grated parmesan if you can; the pre-shredded kind doesn’t blend as smoothly.
Ricotta and egg: Ricotta makes the filling creamy and gives the lasagna its body. The egg helps the layer set instead of spilling out when you cut into it. If your ricotta is loose, drain it for a few minutes in a fine strainer first so the filling stays thick.
Mozzarella: This is the browning layer that pulls everything together. Low-moisture shredded mozzarella melts more predictably than fresh mozzarella here, which matters in a baked dish with already-wet vegetables.
Sun-dried tomatoes: These are optional, but they add a concentrated sweet-tart note that works well against the basil and ricotta. Chop them finely so they tuck into the layers instead of sliding around.
Building the Layers So the Pan Slices Cleanly
Salting and Roasting the Zucchini
Lay the zucchini planks in a single layer, salt them lightly, and let them sit for about 20 minutes. You’ll see beads of moisture on the surface; that’s exactly what you want. Pat them dry, then roast until the edges look slightly wrinkled and the planks have lost their raw stiffness. If you skip the roast, the lasagna can still work, but it will be wetter and the layers won’t hold as well.
Making the Pesto and Ricotta Filling
Blend the basil, pine nuts, garlic, and parmesan first, then stream in the olive oil until the pesto turns smooth and spoonable. Stop once it looks cohesive; overblending can make the basil taste dull. Mix the ricotta with the egg, parmesan, basil, salt, and pepper until it’s evenly seasoned, because bland ricotta is the fastest way to flatten the whole dish.
Assembling the Pan
Spread a little pesto on the bottom of the baking dish first. That keeps the zucchini from sticking and starts flavor at the base of the pan. Build the layers with zucchini, ricotta, pesto, optional sun-dried tomatoes, and mozzarella, then repeat until the dish is full. End with mozzarella so the top turns golden and seals in the layers below.
Baking and Resting
Cover with foil for the first stretch of baking so the center heats through without overbrowning the top. Uncover for the last part so the cheese can blister and take on color. When it comes out, let it rest for 15 minutes. That pause lets the filling set, and it’s the difference between a neat slice and a scoopable mess.
How to Adapt This for Different Kitchens and Different Diets
Gluten-Free by Default
This recipe is already gluten-free as written, which is one reason it works so well as a vegetable-forward main dish. Just check your pesto if you’re using a jarred version, since some brands add breadcrumbs or other fillers. The texture stays the same; nothing needs to be swapped.
Dairy-Free Version
Use a dairy-free ricotta and a plant-based mozzarella that melts well, then choose a pesto without cheese or make your own with nutritional yeast instead of parmesan. The flavor will be a little less savory and more herb-driven, but the structure still holds. Keep the zucchini prep the same, because moisture is still the main issue.
Using Store-Bought Pesto
A good jarred pesto works when time is tight, but it can be saltier and oilier than homemade. If it looks loose in the jar, give it a stir and use a slightly lighter hand so the lasagna doesn’t get greasy. Taste the ricotta filling before assembling and adjust the seasoning only after you’ve accounted for the pesto.
Make It Heartier
If you want a more filling pan, add a thin layer of cooked spinach or sautéed mushrooms between the zucchini and ricotta. Keep the additions dry and well-cooked so they don’t bring extra moisture into the bake. This keeps the lasagna vegetarian while making it feel more like a full dinner.
Storage and Reheating
- Refrigerator: Store leftovers covered for up to 4 days. The zucchini softens a little more by day two, but the flavor stays good.
- Freezer: It freezes, but the texture gets softer after thawing because zucchini holds a lot of water. If you do freeze it, cut it into portions first and wrap them well.
- Reheating: Warm slices in a 350°F oven until heated through so the top stays intact. The microwave works in a pinch, but it can make the layers loose and watery.
Answers to the Questions Worth Asking

Pesto Zucchini Lasagna
Ingredients
Equipment
Method
- Salt the zucchini planks and let them rest for 20 minutes to sweat out moisture.
- Pat the zucchini dry, then roast at 425°F for 10 minutes until the edges look slightly dried.
- Blend the basil, pine nuts, garlic, and parmesan, then stream in the olive oil and blend until smooth.
- Season the pesto with salt to taste, then set aside.
- Mix the ricotta with the egg, parmesan, basil, salt, and pepper until evenly combined.
- Preheat the oven to 375°F.
- Spread 3 tablespoons of pesto on the bottom of a 9x13 dish.
- Layer the roasted zucchini planks, spread ricotta, dollop and spread pesto generously, scatter sun-dried tomatoes if using, and top with mozzarella; repeat layers ending with mozzarella.
- Cover with foil and bake for 30 minutes, then uncover and bake for 15 minutes until the top is golden.
- Rest the lasagna for 15 minutes so the layers set and slice cleanly.
- Serve with extra pesto drizzled over each slice and garnish with basil.


