Wash and prepare the shepherd's purse thoroughly.
Lightly toast the pine nuts and garlic in a pan over low heat.
In a blender, combine the shepherd's purse, toasted pine nuts and garlic, olive oil, Parmesan cheese, salt, and pepper. Blend until you get a pesto.
Finish by transferring the pesto into a serving bowl.