Sauté the garlic and onion in hot oil. Add hot peppers. Add the red wine, diced tomatoes, tomato paste and anchovy fillets. Simmer for about 15 minutes over medium heat.
Cook al dente spaghetti, add capers and olives to the sauce, season with salt and pepper. Drain the spaghetti, mix with the sauce and serve.