01 - Preheat oven to 375°F. Grease a 9x13-inch baking dish with cooking spray or butter.
02 - Bring a large pot of salted water to a boil. Cook ziti according to package directions until al dente. Drain well and set aside.
03 - Heat olive oil in a large skillet over medium heat. Add onion and cook 3 minutes until softened. Add garlic and cook 1 minute more until fragrant.
04 - Add ground beef to the skillet. Cook, breaking up with a wooden spoon, until fully browned. Drain excess fat and return to heat.
05 - Stir in marinara sauce, basil, oregano, salt, black pepper, and crushed red pepper flakes. Simmer 5 minutes to blend flavors.
06 - In a large bowl, combine cooked ziti, meat sauce, half the mozzarella, and all ricotta. Mix gently until pasta is evenly coated.
07 - Spread half the pasta mixture in the prepared dish. Top with half the remaining mozzarella and half the Parmesan. Add remaining pasta, then finish with remaining mozzarella and Parmesan.
08 - Cover dish tightly with foil. Bake 20 minutes to heat through and meld flavors.
09 - Remove foil and bake another 10 minutes until cheese is golden and bubbly. Let rest 10 minutes before serving.