01 - Preheat the oven to 400°F.
02 - Heat olive oil in a large skillet over medium heat. Sauté onion, carrots, celery, and garlic for 5 minutes until softened.
03 - Add ground beef and cook, stirring, until browned.
04 - Stir in tomato paste and cook for 2 minutes, then add chopped tomatoes, oregano, basil, bay leaf, salt, pepper, red wine (if using), and sugar.
05 - Simmer uncovered for 20–25 minutes, stirring occasionally, until the sauce thickens. Remove the bay leaf.
06 - Meanwhile, cook the pasta in a large pot of salted boiling water until just al dente. Drain and set aside.
07 - In a large mixing bowl, combine the cooked pasta with the Bolognese sauce.
08 - Transfer the mixture to a lightly greased baking dish. Sprinkle mozzarella and Parmesan evenly over the top.
09 - Bake in the preheated oven for 15–20 minutes, or until the cheese is golden and bubbling.
10 - Let rest for 5 minutes before serving.