Preheat your oven to 350°F (175°C). Grease and flour a 9x5-inch loaf pan.
In a mixing bowl, whisk together the flour, baking soda, baking powder, salt, cinnamon, and nutmeg. Set aside.
In a separate bowl, beat the eggs, sugar, oil, and vanilla extract until well combined.
Add the grated zucchini, crushed pineapple, shredded coconut (if using), and chopped nuts (if using) to the wet mixture. Stir until evenly incorporated.
Gradually add the dry ingredients to the wet mixture, mixing just until combined. Avoid overmixing, as it can result in a dense loaf.
Pour the batter into the prepared loaf pan, spreading it evenly.
Bake for 55-60 minutes or until a toothpick inserted into the center comes out clean.
Remove the pan from the oven and let the bread cool in the pan for 10-15 minutes. Then, transfer it to a cooling rack to cool completely.
Once cooled, slice and serve the Moist Pineapple Zucchini Bread. Enjoy the tropical flavors and moist texture!