This Vegetarian Baked Ziti is proof that a meatless pasta bake can be just as rich and satisfying as the classic version, and it's become a genuine family favorite in my house. Finely chopped mushrooms and onion cook down into a hearty, savory sauce that mimics that deep, meaty flavor typically built from ground beef, while a creamy ricotta layer and plenty of mozzarella make every bite gooey and comforting. Layer it up, spoon the pasta mixture into the dish, bake it, and dinner is basically done.

This is the kind of casserole that makes a weeknight feel special. It's a full crowd-pleaser too, easy enough to throw together for a busy dinner but hearty enough to bring to a potluck or serve to guests who won't even notice there's no meat.
If you loved this recipe, try our Creamy Tomato Pasta, Vegetarian Lasagna with Spinach, or Vegetable Pasta Bake next.

Why You'll Love This Recipe
- Meaty flavor without the meat. Finely chopped mushrooms cook down into a rich, savory base that gives real depth to the sauce.
- Three cheeses, endless gooeyness. Ricotta, mozzarella, and Parmesan layer together for maximum cheesy satisfaction.
- Great for a crowd. This recipe makes a full 9x13-inch pan, perfect for feeding a family or bringing to a potluck.
- Freezer-friendly. Make it ahead and freeze for an easy future dinner.
Jump to:
Ingredients and Substitutions

To make this hearty Vegetarian Baked Ziti, you will need the following ingredients (see recipe card below for quantities):
- ziti pasta - penne or rigatoni both work well as substitutes if that's what you have.
- olive oil - for sautéing the vegetables.
- yellow onion - the aromatic base of the sauce.
- cremini mushrooms - finely chopped so they cook down into the sauce and mimic a meaty texture. White button mushrooms work as a substitute. If you'd rather make this a meatless baked ziti with a heartier bite, plant-based sausage crumbles are a good add-in here too.
- garlic - ffresh is best for flavor here, along with a pinch of garlic powder in the sauce if you want extra depth.
- marinara sauce - use your favorite store-bought jar of pasta sauce or tomato sauce, or make your own homemade marinara sauce if you prefer more control over the flavor.
- Italian seasoning - adds a classic herby flavor to the sauce, along with dried oregano if you want to boost that further.
- baby spinach - wilts right into the sauce for extra nutrients and color. Chopped kale works as a substitute, though it may need a few extra minutes to soften.
- whole milk ricotta cheese - the creamy layer that separates the pasta into distinct sections. Whole milk ricotta gives the richest, creamiest texture. Some easy baked ziti recipes also stir a beaten egg into the ricotta mixture to help it set, though it's not necessary here.
- Parmesan cheese - freshly grated melts more smoothly and adds a salty, savory finish throughout the dish.
- fresh parsley and basil - add brightness and herby freshness to the sauce.
- salt and black pepper - season to taste.
- fresh mozzarella cheese - shredded for the top and middle layers. Fresh mozzarella melts beautifully, though a lower-moisture pre-shredded mozzarella works too if that's what you have.
Instructions
- Cook the pasta. Bring a large pot of salted water to a boil over medium-high heat. Add the pasta and cook until al dente according to the package directions. Drain well and set aside.


- Cook the vegetables. Meanwhile, heat the olive oil in a large pot or 4-quart Dutch oven over medium-high heat. Add the onion and mushrooms and sauté until the vegetables are tender and the mushrooms have released and cooked off most of their moisture, about 6 to 8 minutes. Stir in the garlic and cook for 1 minute until fragrant.





- Make the sauce. Pour in the marinara sauce and stir in the Italian seasoning. Bring the sauce to a gentle simmer over medium heat.




- Add the spinach. Stir in the spinach a handful at a time until completely wilted, about 1 to 2 minutes.


- Finish the sauce. Stir in ½ cup Parmesan cheese, parsley, and basil. Season with the salt and pepper. Reduce the heat to low and simmer for 5 minutes, stirring occasionally.



- Prepare the ricotta mixture. In a medium bowl, combine the ricotta cheese and ¼ cup Parmesan cheese until smooth.



- Combine the pasta and sauce. Add the cooked pasta to the sauce and toss until evenly coated.



- Assemble the casserole. Spread half of the pasta mixture into a greased 9x13-inch baking dish. Dollop half of the ricotta mixture over the pasta and gently spread it into an even layer. Sprinkle with 1½ cups mozzarella cheese. Repeat with the remaining pasta, ricotta mixture, remaining mozzarella, and the remaining ¼ cup Parmesan cheese, making sure the cheese fully covers the top of the ziti.









- Bake. Bake in a 375°F preheated oven for 25 to 30 minutes, until the cheese is melted, bubbly, and lightly golden.


- Rest and serve. Let the baked ziti rest for 10 to 15 minutes before serving.
Expert Tip
Cook Off the Mushroom Moisture Fully
Don't rush past step 3. Mushrooms release a lot of water as they cook, and letting that moisture fully evaporate before moving on is what gives this sauce its rich, concentrated flavor instead of a watery, diluted one. If the pan looks wet, keep cooking a few extra minutes until it looks mostly dry again.
Recipe Variations
- Add more vegetables. Diced zucchini, bell pepper, or eggplant all work well sautéed along with the onion and mushrooms.
- Make it spicy. Add a pinch of red pepper flakes to the sauce for a little heat.
- Swap the greens. Kale or Swiss chard both work well in place of spinach.
- Make it a white sauce version. Swap the marinara for a béchamel or alfredo sauce for a completely different, creamy take.
- Add protein. Stir in plant-based crumbles or white beans along with the vegetables for extra protein.
- Make it extra cheesy. Add a layer of provolone or fontina along with the mozzarella for even more melty richness.
- Make it vegan. Swap the ricotta, Parmesan, and mozzarella for your favorite plant-based versions, and use a vegan-friendly marinara or tomato sauce.

Tips for the Best Vegetarian Baked Ziti
- Chop the mushrooms and onion finely. Small, even pieces help them cook down into the sauce rather than staying chunky.
- Cook the pasta al dente. It will continue absorbing moisture from the sauce as it bakes, so slightly underdone is exactly right.
- Dollop the ricotta, don't spread it too thin. Distinct pockets of ricotta throughout give you creamy bites in every serving.
- Let it rest before slicing. The full 10 to 15 minutes helps the layers set so you get clean slices instead of a saucy mess.
- Use fresh mozzarella for the best melt. It gives a gooier, more satisfying stretch than a pre-shredded, lower-moisture variety.

Storage
Make Ahead
Assemble the casserole up to 1 day in advance and store it covered in the refrigerator, unbaked. Add a few extra minutes to the bake time since it will start cold.
How to Store
Store leftovers in an airtight container in the refrigerator for up to 4 days.
How to Reheat
Reheat individual portions in the microwave for 1 to 2 minutes, or cover the casserole loosely with aluminum foil and reheat in a 350°F oven for 15 to 20 minutes, until warmed through.
How to Freeze
Assemble the casserole through step 9, but don't bake it. Wrap tightly and freeze unbaked for up to 3 months. Thaw overnight in the fridge before baking as directed, adding a few extra minutes if needed. You can also freeze fully baked and cooled leftovers for up to 3 months.
How to Serve
This baked ziti is a full meal on its own, but a simple side or two rounds out the table nicely.
These are my favorite sides to serve with it:

Side Dishes for Pasta
For more recipe ideas, check out our collection of pasta side dishes, featuring everything from fresh salads and roasted vegetables to crusty breads and flavorful appetizers that pair perfectly with any pasta dinner.
FAQ
Yes, absolutely. This recipe proves it works beautifully. Finely chopped mushrooms give the sauce a hearty, savory quality that stands in nicely for ground beef or sausage, and the three-cheese layers add plenty of richness on their own.
Finely chopped mushrooms are one of the best substitutes, since their texture and umami flavor mimic ground meat well once cooked down. Plant-based ground crumbles, cooked lentils, or white beans are other solid options depending on what you have on hand or the texture you're going for.
Building depth in layers is key. Letting the mushrooms cook down completely, using a good-quality marinara or homemade sauce, and finishing the sauce with fresh herbs and Parmesan before it even touches the pasta all add up. A well-seasoned ricotta layer matters too, don't skip stirring in that extra Parmesan.
Yes, assemble it up to 1 day in advance and store it covered in the refrigerator, unbaked. You can also fully assemble and freeze it unbaked for up to 3 months.
This usually means the mushrooms weren't cooked long enough to release and evaporate their moisture, or the pasta was slightly overcooked and released extra starch and liquid into the dish. Cook the mushrooms until the pan looks mostly dry, and keep the pasta al dente.
Overcooking the pasta before it goes into the oven is a common one, since it will continue softening as it bakes and can turn mushy. Not letting excess moisture (from mushrooms, spinach, or watery ricotta) cook off before assembling is another, since it leads to a soupy casserole. Skipping the rest time after baking is also a frequent mistake, since it makes for a messier, less clean slice.
No, not at all. This recipe is a great example of how a well-built vegetable and cheese version can be just as hearty and satisfying, making it a genuinely convincing meatless baked ziti and, in my opinion, one of the best baked ziti recipes whether or not meat is involved.
No, baking it uncovered helps the cheese on top turn golden and slightly crisp. If it starts browning too quickly, you can loosely cover it with foil for the last few minutes.
More Baked Pasta Recipes
Looking for other recipes like this? Try these:
Tried this recipe?
I'd love to hear what you think! Leave a comment and rating below to share your feedback. Your reviews help others discover this recipe and help me keep creating more free recipes for you. Snap a photo and tag me on social media @aheadofthyme too.
Vegetarian Baked Ziti
- Total Time: 1 hour
- Yield: 8 servings 1x
- Diet: Vegetarian
Description
Vegetarian Baked Ziti layers pasta, a hearty mushroom marinara sauce, creamy ricotta, and melted mozzarella for a rich, meatless pasta bake.
Ingredients
- 1 pound (454 grams) ziti pasta
- 2 tablespoons olive oil
- 1 medium yellow onion, finely chopped
- 8 ounces cremini mushrooms, finely chopped
- 3 cloves garlic, minced
- 4 cups marinara sauce
- 1 tablespoon Italian seasoning
- 5 ounces baby spinach
- 15 ounces whole milk ricotta cheese
- 1 cup Parmesan cheese, freshly grated, divided
- ¼ cup fresh parsley, finely chopped
- ¼ cup fresh basil, chopped
- 1 teaspoon salt (or to taste)
- ½ teaspoon ground black pepper (or to taste)
- 3 cups fresh mozzarella cheese, shredded
Instructions
- Preheat the oven to 375°F.
- Bring a large pot of salted water to a boil over medium-high heat. Add the pasta and cook until al dente according to the package directions. Drain well and set aside.
- Meanwhile, heat the olive oil in a large pot or 4-quart Dutch oven over medium-high heat. Add the onion and mushrooms and sauté until the vegetables are tender and the mushrooms have released and cooked off most of their moisture, about 6 to 8 minutes. Stir in the garlic and cook for 1 minute until fragrant.
- Pour in the marinara sauce and stir in the Italian seasoning. Bring the sauce to a gentle simmer over medium heat.
- Stir in the spinach a handful at a time until completely wilted, about 1 to 2 minutes.
- Stir in ½ cup Parmesan cheese, parsley, and basil. Season with the salt and pepper. Reduce the heat to low and simmer for 5 minutes, stirring occasionally.
- In a medium bowl, combine the ricotta cheese and ¼ cup Parmesan cheese until smooth.
- Add the cooked pasta to the sauce and toss until evenly coated.
- Spread half of the pasta mixture into a greased 9x13-inch baking dish. Dollop half of the ricotta mixture over the pasta and gently spread it into an even layer. Sprinkle with 1½ cups mozzarella cheese. Repeat with the remaining pasta, ricotta mixture, remaining mozzarella, and the remaining ¼ cup Parmesan cheese.
- Bake for 25 to 30 minutes, until the cheese is melted, bubbly, and lightly golden.
- Let the baked ziti rest for 10 to 15 minutes before serving.
Notes
Storage: Refrigerate leftovers in an airtight container for up to 4 days, or freeze (baked or unbaked) for up to 3 months. Reheat individual portions in the microwave for 1 to 2 minutes, or in a 350°F oven loosely covered with foil for 15 to 20 minutes.
- Prep Time: 20 minutes
- Cook Time: 40 minutes
- Category: Pasta
- Method: Baked
- Cuisine: Italian














Comments
No Comments