Preheat the oven to 350 degrees and line a baking sheet with parchment paper.
Add pine nuts and walnuts to the baking sheet and bake for 5-7 minutes. Let cool.
Transfer the nuts to a food processor. Add cheese and garlic cloves and pulse until combined and finely ground.
Add the basil and put the top back on the food processor.
Turn on the food processor and slowly pour the oil in the top. Pulse until smooth.
Add salt & pepper and pulse a couple of times to combine.