Step 1: Cook the Ziti: Preheat oven to 375F (190C). Cook ziti pasta according to package directions until al dente. Drain well and set aside.
Step 2: Saut Aromatics: While the pasta is cooking, heat olive oil in a large skillet over medium heat. Add chopped onion and cook until softened, about 5 minutes. Add minced garlic and cook for another minute until fragrant.
Step 3: Prepare the Tomato Sauce: Stir in crushed tomatoes, tomato sauce, dried oregano, dried basil, red pepper flakes (if using), salt, and pepper. Bring to a simmer and cook for 15 minutes, stirring occasionally, to allow the flavors to meld.
Step 4: Prepare the Ricotta Mixture: In a medium bowl, combine ricotta cheese, 1/2 cup grated Parmesan cheese, beaten egg, salt, and pepper. Mix well until thoroughly combined. This mixture adds a creamy depth to the pasta.
Step 5: Assemble the Baked Ziti: In a large bowl, combine the cooked ziti pasta with the tomato sauce, ensuring that all the pasta is well coated.
Step 6: Layer in Baking Dish: Spread half of the pasta mixture into a greased 9x13 inch baking dish. Spoon the ricotta mixture evenly over the pasta. Sprinkle with 1 cup of shredded mozzarella cheese. Top with the remaining pasta mixture.
Step 7: Top with Cheese: Sprinkle the remaining 1 cup of shredded mozzarella cheese and additional Parmesan cheese over the top.
Step 8: Bake: Cover the baking dish with aluminum foil and bake for 20 minutes. Remove the foil and bake for an additional 15 minutes, or until the cheese is melted and bubbly and the top is lightly golden brown.
Step 9: Rest and Serve: Let the baked ziti rest for 10 minutes before slicing and serving. Garnish with fresh basil leaves, if desired.
For a richer flavor, use fresh herbs in the tomato sauce instead of dried. Feel free to substitute other cheeses, such as provolone or fontina, for a different flavor profile. To add more vegetables, saut chopped mushrooms, bell peppers, or spinach with the onion and garlic before adding the tomatoes.