Bring a large pot of salted water to a boil and cook the ziti according to package instructions until al dente. Drain and set aside.
In a large mixing bowl, combine the ricotta cheese, egg, minced garlic, dried basil, oregano, red pepper flakes, salt, and pepper. Mix well until fully combined.
In a large pot, mix the marinara sauce with the cooked ziti, ensuring all the pasta is well coated.
Stir in half of the ricotta mixture into the ziti and marinara, mixing until evenly distributed.
In a large baking dish (9x13 inch), layer half of the ziti mixture, followed by half of the mozzarella and provolone cheeses.
Add dollops of the remaining ricotta mixture over the top of the cheese layer, then add the remaining ziti mixture over it.
Top with the rest of the mozzarella, provolone, and Parmesan cheeses evenly.
Cover the baking dish with aluminum foil and bake for 25 minutes.
After 25 minutes, remove the foil and bake for an additional 15 minutes or until the cheese is bubbly and golden brown on top.
Remove from the oven and let it rest for 10 minutes before serving.
Garnish with fresh basil leaves before serving.
Notes
Let the dish rest before serving for better slicing.