Preheat your oven to 375°F (190°C). Lightly grease a 9x13-inch baking dish and set aside.
Bring a large pot of salted water to a boil. Cook the ziti or penne pasta until al dente, according to the package instructions. Drain and set aside.
In a large skillet, cook the pancetta over medium heat until crispy. Remove and set aside, leaving the rendered fat* in the skillet. Add the ground beef or sausage to the skillet and cook until browned, breaking it up with a wooden spoon as it cooks. Remove any excess grease.
Add the chopped onion to the skillet and sauté until softened, about 5 minutes. Stir in the garlic, fresh basil, Italian seasoning, and red pepper flakes, cooking for another 1-2 minutes until fragrant.
Pour the marinara or tomato sauce into the skillet and stir to combine. Season with salt and black pepper to taste. Let the sauce simmer for 5-7 minutes to allow the flavors to meld.
In a large mixing bowl, combine the cooked pasta, prepared sauce, and crispy pancetta. Toss well to coat.
Distribute half of the pasta blend into the baking dish you've prepared. Scatter half of the mozzarella and half of the Parmesan cheese over the pasta.
Add the remaining pasta mixture on top, followed by the remaining mozzarella and Parmesan.
Cover the dish with aluminum foil and bake in the preheated oven for 20 minutes. Remove the foil and bake for an additional 15 minutes, or until the cheese is melted and bubbly.
Let the baked ziti rest for 5 minutes before serving. Garnish with additional fresh basil or grated cheese if desired. Enjoy!