While garlic and onions contribute to the traditional flavor profile of marinara sauce, you can still create a tasty sauce without them. You can experiment with substitutes like shallots, leeks, or using garlic and onion powders for a milder flavor.