Many pesto recipes traditionally use pine nuts, which is not considered a nut but is a seed instead. However, it's not uncommon to replace pine nuts in a pesto recipe with nuts such as walnuts, pecans, almonds, or macadamia (such as in this recipe).