This four cheese and pesto Italian baked spaghetti is the ultimate comfort food—a hearty pasta casserole layered with a rich tomato sauce, creamy pesto, and a blend of four cheeses that melt into a golden, bubbly crust. It’s a family-friendly dish that’s perfect for weeknight dinners or feeding a crowd, and it comes together with simple ingredients and straightforward steps.
Ingredients
- 12 oz (340 g) spaghetti
- 2 cups (480 ml) marinara sauce (about one 24-oz jar)
- 1/2 cup (120 ml) prepared pesto
- 1 cup (240 ml) ricotta cheese (whole milk preferred)
- 1 large egg, lightly beaten
- 2 cups (200 g) shredded mozzarella cheese, divided
- 1 cup (100 g) shredded provolone cheese
- 1/2 cup (50 g) grated Parmesan cheese
- 1/4 cup (25 g) grated Pecorino Romano cheese
- 2 tablespoons (30 ml) olive oil
- 2 cloves garlic, minced
- 1/2 teaspoon salt (or to taste)
- 1/4 teaspoon black pepper
- Fresh basil leaves for garnish (optional)
Instructions
- Preheat your oven to 375°F (190°C). Grease a 9×13-inch baking dish (or a 3-quart casserole) with a little olive oil or nonstick spray.
- Bring a large pot of salted water to a boil. Cook the spaghetti according to package instructions until just al dente (about 1 minute less than the recommended time, since it will bake further). Drain well and toss with a drizzle of olive oil to prevent sticking.
- In a small bowl, combine the ricotta, beaten egg, 1 cup of the mozzarella, and the provolone. Mix well and set aside.
- In a large bowl, mix the cooked spaghetti with the marinara sauce, pesto, minced garlic, salt, and pepper. Stir until the pasta is evenly coated.
- Spread half of the spaghetti mixture into the prepared baking dish. Dollop the ricotta mixture over the pasta and gently spread it into an even layer (it doesn’t need to be perfect).
- Top with the remaining spaghetti mixture, pressing down slightly to compact it.
- Sprinkle the remaining 1 cup of mozzarella, the Parmesan, and the Pecorino Romano evenly over the top.
- Bake uncovered for 25–30 minutes, until the cheese is melted and bubbly and the edges are lightly browned. If you want a deeper golden crust, switch to broil for the last 1–2 minutes, watching carefully to avoid burning.
- Let the baked spaghetti rest for 5–10 minutes before slicing and serving. Garnish with fresh basil if desired.
Tips
- Don’t overcook the pasta: Undercook the spaghetti by about a minute, as it will continue to cook in the oven. Overcooked pasta becomes mushy.
- Use whole-milk cheeses: They melt better and produce a creamier texture. If you use part-skim mozzarella, the dish will still work, but it may be less rich.
- Make it ahead: Assemble the casserole (without baking) and refrigerate for up to 24 hours. Add 10–15 minutes to the baking time if starting from cold.
- Pesto tip: If your pesto is very thick, stir in a tablespoon of water or olive oil to loosen it before mixing with the sauce.
Serving Suggestions
Serve this baked spaghetti as a main course with a simple green salad dressed with lemon vinaigrette and a side of garlic bread or crusty baguette. It also pairs well with roasted vegetables like broccoli or zucchini. For a lighter meal, serve smaller portions as a side dish alongside grilled chicken or fish.
Variations
- Add protein: Brown 1 lb (450 g) ground beef, Italian sausage, or ground turkey and mix it into the sauce before assembling.
- Vegetable boost: Sauté spinach, mushrooms, or bell peppers and layer them in with the ricotta.
- Different cheeses: Swap provolone for smoked mozzarella or fontina, and Pecorino for Asiago.
- Spicy kick: Add red pepper flakes to the sauce or use a spicy arrabbiata marinara.
Storage and Reheating
Store leftovers in an airtight container in the refrigerator for up to 4 days. To reheat, place individual portions on a microwave-safe plate and microwave on high for 1–2 minutes, or reheat in a 350°F (175°C) oven for 10–15 minutes until warmed through. The baked spaghetti can also be frozen for up to 3 months; thaw overnight in the fridge before reheating.
Frequently Asked Questions
Can I use a different pasta shape? Yes, you can substitute penne, rigatoni, or ziti. Adjust the cooking time based on the package instructions, and make sure to undercook slightly as you would with spaghetti.
Can I make this vegetarian? This recipe is already vegetarian as written. For a vegan version, use plant-based cheeses and a vegan pesto, and replace the egg with a flax egg (1 tablespoon ground flaxseed mixed with 3 tablespoons water).
Why is my baked spaghetti dry? This usually happens when the pasta is overcooked before baking, or when the sauce is too thick. Make sure to use enough sauce and don’t drain the pasta too thoroughly—a little residual water helps keep it moist.
Can I prepare this in advance and bake later? Absolutely. Assemble the casserole, cover, and refrigerate for up to 24 hours. When ready to bake, add about 10–15 minutes to the baking time, and check that the center is hot and bubbly.
What can I use instead of pesto? If you don’t have pesto, you can substitute 1/2 cup of finely chopped fresh basil mixed with 2 tablespoons of olive oil and a clove of minced garlic. Or, use a sun-dried tomato pesto for a different flavor.
Can I freeze the baked spaghetti? Yes, you can freeze it either before or after baking. If freezing unbaked, assemble, wrap tightly in foil, and freeze for up to 3 months. Bake from frozen at 375°F (190°C) for about 45–50 minutes. If freezing after baking, let it cool completely, then wrap and freeze. Thaw in the refrigerator before reheating.