Heat the oven: Preheat to 375°F (190°C). Lightly oil a 9x13-inch baking dish.
Cook the spaghetti: Boil in salted water until just shy of al dente.
Drain and toss with a splash of olive oil to prevent sticking.
Make the creamy layer: In a bowl, mix ricotta, cream cheese, and sour cream. Add garlic, Italian seasoning, 1/4 cup Parmesan, a pinch of salt, and pepper. Stir until smooth.
Warm the sauce: Heat marinara in a saucepan.
Season with a pinch of salt and pepper. Stir in cooked meat or veggies if using.
Layer one: Spread a thin layer of marinara in the baking dish. Add half the spaghetti and toss gently to coat.
Layer two: Dollop and spread the creamy cheese mixture over the pasta.
Sprinkle with 1 cup mozzarella.
Layer three: Add the remaining spaghetti, pour over more marinara, and top with the rest of the mozzarella and remaining Parmesan.
Bake: Cover with foil and bake for 20 minutes. Uncover and bake another 10–15 minutes, until bubbly and lightly golden.
Rest and serve: Let it rest 10 minutes so the layers set. Garnish with chopped basil or parsley and serve warm.