Cook the spaghetti in salted water according to the instructions on the packet.
Clean the chili peppers and cut into small rings, clean the leek and also cut into rings, cut the cooked ham into small cubes.
Heat the olive oil in the pan and first fry the chilli peppers in it, then add the garlic and ham, and finally fry the leek briefly.
Then gradually stir in the spaghetti, if it is too dry, always pour a little oil over it. Season everything again with salt and pepper, season to taste.