Preheat the oven to 400 degrees Fahrenheit.
Add the olive oil and onion to an oven safe skillet over medium-high heat.
Saute for 3-4 minutes or until translucent.
Stir in the garlic and italian seasoning.
Saute for another minute.
Stir in the beans and marinara sauce.
Bring to a simmer for 2-3 minutes.
Turn off the heat.
Top with the mozzarella cheese and parmesan.
Bake for 15 minutes or until the cheese has fully melted.
Garnish with fresh basil and red pepper flakes.
