01 - Preheat oven to 375°F. Grease a 9x9-inch baking dish with 1 tbsp butter or olive oil.
02 - Heat 1 tbsp olive oil in a large skillet over medium heat. Add chopped onion and sauté for 3 minutes until translucent. Add garlic and cook for 1 minute until fragrant.
03 - Add spinach to the skillet and cook, stirring constantly, until wilted approximately 2 minutes. Remove from heat and allow to cool slightly.
04 - In a large bowl, whisk together eggs, milk, oregano, black pepper, and salt until thoroughly combined.
05 - Arrange half of the zucchini slices in the prepared baking dish. Spread half of the spinach mixture over the zucchini, then sprinkle with half the feta and mozzarella cheeses.
06 - Repeat layers with remaining zucchini slices, spinach mixture, feta, and mozzarella cheese.
07 - Pour the egg mixture evenly over the layered vegetables and cheese. Drizzle with remaining olive oil and sprinkle with red pepper flakes if desired.
08 - Bake uncovered for 35 minutes until the casserole is set and the top is golden brown.
09 - Let the casserole rest for 10 minutes before slicing and serving to allow flavors to meld.