Preheat your oven to 375°F (190°C).
Cook the ziti pasta according to the package instructions. Drain and set aside.
In a mixing bowl, combine ricotta cheese, egg, garlic, basil, oregano, salt, and pepper.
In a baking dish, layer half of the cooked ziti, half of the marinara sauce, and half of the ricotta mixture. Repeat the layers.
Top with shredded mozzarella and grated Parmesan cheese.
Bake in the preheated oven for 25-30 minutes, or until the cheese is melted and bubbly.
Let it cool for a few minutes before serving. Enjoy!