Preheat the oven to 375°F (190°C) and grease a 9x13-inch baking dish.
Cook the ziti pasta according to the package instructions. Drain and set aside.
In a large skillet over medium heat, cook the ground beef or sausage until browned. Drain excess fat.
Add garlic and Italian seasoning to the skillet and cook for 1 minute.
Stir in marinara sauce and simmer for 5 minutes. Adjust seasoning with salt and pepper.
In a large mixing bowl, combine cooked pasta, ricotta cheese, and half the Parmesan cheese.
Spread half of the pasta mixture into the prepared baking dish. Top with half of the meat sauce and half of the mozzarella.
Repeat the layers, ending with mozzarella cheese on top.
Bake in the preheated oven for 25-30 minutes, or until bubbly and golden.
Let cool for 5 minutes before serving.