Preheat your oven to 375°F (190°C).
In a large bowl, combine the zucchini slices, tomato slices, olive oil, minced garlic, dried basil, dried oregano, salt, and pepper. Toss until the vegetables are well-coated.
In a greased baking dish, arrange the zucchini and tomato slices in an alternating pattern. You can make rows or a spiral, depending on the shape of your dish.
Sprinkle the grated Parmesan cheese evenly over the top, followed by the shredded mozzarella.
Cover the baking dish with foil and bake for 25 minutes.
Remove the foil and bake for an additional 10-15 minutes, or until the cheese is melted and golden brown.
Allow the dish to cool slightly before sprinkling with fresh basil (if using) and serving
