Preheat oven to 375°F (190°C).
Cook ziti pasta according to package instructions. Drain and set aside.
In a large pot, cook ground beef over medium heat until browned. Add diced onion and minced garlic, and cook until onion is translucent.
Add marinara sauce, dried oregano, dried basil, salt, and pepper to the pot. Simmer for 10 minutes.
In a large bowl, combine cooked ziti pasta, ricotta cheese, and half of the mozzarella cheese.
Spread a thin layer of the meat sauce in the bottom of a baking dish. Layer half of the ziti mixture on top. Add another layer of meat sauce, followed by the remaining ziti mixture. Top with the remaining meat sauce and sprinkle with the remaining mozzarella cheese and Parmesan cheese.
Bake in preheated oven for 30 minutes, or until cheese is melted and bubbly.
Let cool for a few minutes before serving.