01 - Preheat oven to 375°F. Grease a 9x13-inch baking dish.
02 - Boil salted water in a large pot. Cook pasta until just al dente according to package instructions. Drain and set aside.
03 - Heat olive oil in a large skillet over medium heat. Cook onion until translucent, about 3 minutes. Add garlic and cook for another minute.
04 - Add ground beef to the skillet. Brown and cook through, breaking up the meat with a spoon, about 6 to 8 minutes. Drain excess fat.
05 - Stir marinara sauce, Italian herbs, salt, black pepper, and optional crushed red pepper flakes into the beef mixture. Simmer for 5 minutes.
06 - In a large bowl, mix half the meat sauce with cooked pasta, ricotta cheese, and 1 cup mozzarella cheese.
07 - Spread half the pasta mixture into the prepared dish. Top with half the remaining sauce and half the Parmesan cheese. Repeat layers with remaining pasta mixture, sauce, mozzarella, and Parmesan.
08 - Cover with foil and bake for 25 minutes. Remove foil and bake an additional 10 to 15 minutes until cheese is bubbly and golden.
09 - Allow to rest for 10 minutes before serving. Garnish with fresh basil if desired.