Preheat your oven to 375°F (190°C). Bring a large pot of salted water to a boil and cook the ziti until just shy of al dente, following the package instructions. Drain the pasta and set it aside. Avoid overcooking it because the pasta will continue cooking in the oven.
Heat olive oil in a large skillet over medium heat. Add the chopped onion and cook for 3–4 minutes until softened. Stir in the minced garlic and cook for another 30 seconds. Add the marinara sauce, crushed tomatoes, Italian seasoning, oregano, salt, and black pepper.
Stir everything together and let the sauce simmer gently for 8–10 minutes. In a mixing bowl, combine ricotta cheese, egg, and grated Parmesan cheese. Stir until smooth and well combined.
Set the mixture aside while you prepare the casserole layers. Add the drained ziti to the prepared tomato sauce. Toss gently until the pasta is evenly coated. Make sure the sauce reaches all the pasta so every bite has plenty of flavor.
Spread a thin layer of the sauced pasta into the bottom of a greased 9 × 13-inch baking dish. Add spoonfuls of the ricotta mixture over the pasta, followed by some shredded mozzarella. Repeat with the remaining pasta and ricotta mixture.
Finish with the remaining mozzarella cheese spread evenly across the top. Cover the baking dish loosely with aluminum foil and bake for 20 minutes.
Remove the foil and continue baking for another 10–15 minutes, until the cheese is melted, bubbly, and lightly golden around the edges.
Remove the casserole from the oven and let it rest for 5–10 minutes before serving. Sprinkle with fresh parsley if desired. Scoop into portions and serve warm while the cheese is still deliciously melted.