Cook the pasta according to the instructions on the packet. In the meantime peel garlic and cut into slices. Carve pepperoni lengthwise, remove seeds and wash. Cut into very thin rings. Wash and finely chop the basil.
Heat the oil. Sauté the garlic and pepperoni in it. Fold in basil.