Walnuts are a popular alternative to pine nuts in pesto making because they are readily available and affordable, and they give the pesto a nutty flavor similar to pine nuts.