Preheat your oven to 375°F (190°C).
Cook the pasta according to package instructions until al dente; drain and set aside.
In a large mixing bowl, combine ricotta cheese, egg, minced garlic, Italian seasoning, salt, and pepper.
Mix half of the marinara sauce with the cooked pasta.
In a baking dish, layer half of the pasta mixture.
Spread half of the ricotta mixture over the pasta layer.
Sprinkle a third of the mozzarella cheese on top.
Repeat the layering process with the remaining ingredients.
Finish with the remaining marinara sauce and top with the rest of the mozzarella and Parmesan cheese.
Bake for 30 minutes or until golden and bubbly.