01 - Preheat oven to 375°F. Lightly grease a 9x13-inch baking dish with olive oil or nonstick spray.
02 - Bring a large pot of salted water to a boil. Cook the ziti until al dente according to package instructions. Drain and set aside.
03 - In a large bowl, mix ricotta, half the mozzarella, half the Parmesan, minced garlic, basil, parsley, salt, black pepper, and crushed red pepper flakes until well combined.
04 - Add the cooked pasta and 3 cups marinara sauce to the cheese mixture. Stir until evenly incorporated.
05 - Spread half of the pasta mixture evenly in the prepared baking dish and spoon over 1 cup marinara sauce.
06 - Sprinkle the remaining mozzarella and Parmesan cheeses on top.
07 - Cover loosely with foil and bake for 20 minutes.
08 - Remove foil and bake an additional 10 to 15 minutes until cheese is golden and bubbly.
09 - Let the dish rest for 10 minutes before serving. Garnish with fresh basil or parsley if desired.