Preheat oven to 375F.
In a large pan (that will fit the gnocchi), over medium heat, add the olive oil. Once it’s shimmering, add in the garlic cloves. Cook until fragrant.
Add the tomatoes, and rinse out the can of tomatoes, and add about 1 cup of that water to the pan.
Add about 6 basil leaves and cook the sauce until thickened, about 10-15 minutes. Remove the garlic cloves and season with salt and pepper.
In the mean time, bring a large pot of water to boil. Once boiling, salt the water.
Add in the gnocchi. Boil the gnocchi until they float to the top.
Remove the gnocchi from the pot and stir into the sauce.
Top the gnocchi with mozzarella and parmigiano reggiano.
Place the pan in the oven and bake for about 10 minutes, or until cheese is melted.
If your pan is not oven safe, you will need to transfer the gnocchi to an oven safe dish before topping with the mozzarella and parmigiano.
Remove the pan from the oven. Spoon gnocchi into serving dishes and top with more grated parmigiano and fresh basil if desired.