Prep the ingredients by dicing the onion and mincing the garlic.
Cook the ziti pasta in boiling salted water until al dente, about 10 minutes. Drain and set aside.
In a large skillet, cook the ground beef, onion, and garlic over medium heat until the beef is browned and the onions are translucent, about 5-7 minutes. Drain excess fat, then stir in marinara sauce, Italian seasoning, salt, and pepper. Simmer for 5 minutes.
In a large mixing bowl, combine cooked ziti, ricotta cheese, and half of the mozzarella and Parmesan cheeses. Mix well, then add the meat sauce and stir until combined.
Transfer the mixture to a greased 9x13-inch baking dish. Top with remaining mozzarella and Parmesan cheeses.
Preheat oven to 375°F. Cover with foil and bake for 25 minutes, then remove foil and bake for an additional 15 minutes until cheese is bubbly and golden brown.
Let cool for a few minutes before serving.