Slice the zucchini and fry in batches with the garlic. Add salt and pepper.
Cook the spaghetti in salted water until al dente and mix with the zucchini.
Put everything in a baking dish and top with sliced goat cheese.
Put in the oven preheated to 200° for about 20 minutes. Chop the herbs together.
After 20 minutes take the baking dish out of the oven and put the herbs on top and mix everything well so that the cheese is distributed in the spaghetti/zucchini mixture.
Bake in the oven again for 10 minutes.