Preheat your oven to 350°F (175°C).
Cook the pasta according to package instructions until al dente. Drain and set aside.
In a large skillet over medium heat, add the ground beef and cook until browned, breaking it apart with a spoon. Drain excess fat if necessary.
Add the diced onion and minced garlic to the skillet with the beef. Sauté for about 3-4 minutes until the onion is translucent.
Stir in the tomato sauce, diced tomatoes, Italian seasoning, salt, and black pepper. Let it simmer for 5 minutes.
Combine the cooked pasta with the beef mixture in the skillet, stirring until well mixed.
Transfer the mixture to a greased 9x13-inch baking dish. Sprinkle the mozzarella and Parmesan cheese evenly over the top.
Bake in the preheated oven for 20-25 minutes, or until the cheese is bubbly and golden brown.
Remove from the oven and let it cool for a few minutes. Garnish with chopped parsley if desired before serving.