Preheat the oven to 375 degrees and lightly grease a 9x9 baking dish.
Bring a large pot of salted water to a boil and cook the ziti according to package directions until al dente. Drain the pasta in a colander and return it to the pot.
Stir the marinara sauce, Italian seasoning, salt, and black pepper into the drained pasta until evenly coated.
Add the ricotta cheese to the pot and mix until it is distributed through the ziti.
Spread half the pasta mixture into the prepared baking dish. Sprinkle half the mozzarella and half the Parmesan over the top.
Add the remaining pasta mixture, then finish with the rest of the mozzarella and Parmesan.
Bake uncovered for 20 to 25 minutes until the cheese is melted and lightly browned on top. Let the casserole rest for 5 minutes before serving.