It's best to use fresh basil in pesto, but if you don't have any fresh leaves on hand, dried basil will work.