Bring a large pot of salted water to a boil and cook the pasta until al dente, following package instructions. Drain and set aside.
Preheat your oven to 375°F (190°C). Grease a baking dish lightly with cooking spray or butter.
In the prepared baking dish, spread a thin layer of marinara sauce on the bottom. This helps prevent sticking and adds flavor from the start.
Layer half of the cooked pasta over the sauce, distributing it evenly to cover the base of the dish.
Spoon and spread about half of the remaining marinara sauce over the pasta layer, ensuring even coverage.
Sprinkle half of the shredded mozzarella and grated Parmesan evenly over the sauce-covered pasta.
Repeat the layering process: add the remaining pasta, then the rest of the marinara sauce, followed by the remaining cheeses.
Cover the dish tightly with aluminum foil and bake in the preheated oven for 20 minutes, until the sauce is bubbling around the edges.
Remove the foil and continue baking for another 10 minutes, or until the cheese on top is golden and crispy.
Take the casserole out of the oven and let it rest for 5 minutes to set before serving. The edges will be crispy, while the center remains gooey and cheesy.
Serve warm and enjoy a hearty, cheesy pasta treat with perfectly baked, bubbly, and golden top.