Begin by bringing a large pot of salted water to a boil. Add the pasta and cook according to package instructions until al dente. Drain the pasta in a colander and set aside.
In a skillet, heat the olive oil over medium heat. Add the chopped onion and garlic, sautéing until the onion is translucent and tender, about 3-4 minutes.
Add the ground beef to the skillet, breaking it up with a wooden spoon. Cook until browned and fully cooked, about 5-7 minutes. Drain excess fat if necessary.
Stir in the diced tomatoes, tomato sauce, oregano, basil, salt, and pepper. Bring the sauce to a simmer and let it cook for about 5 minutes, allowing the flavors to meld together.
Add the drained pasta to the skillet, tossing everything together until the pasta is well coated with the sauce.
Serve immediately in bowls, topped with grated Parmesan cheese if desired.