Skip to main content

Spaghetti with Tomato and Walnut Pesto

This vibrant spaghetti with tomato and walnut pesto offers a sophisticated twist on traditional Italian flavours. By blistering cherry tomatoes under the grill and blending them with toasted walnuts, you create a sauce that is deeply savoury, textured, and incredibly fresh. The addition of anchovies and lemon zest provides a hit of umami and acidity that balances the richness of the nuts and olive oil beautifully.

As a high-protein vegetarian-friendly option (simply omit the anchovies if preferred), this dish is perfect for a nutritious mid-week meal or an impressive weekend lunch. The walnuts provide a satisfying crunch and healthy fats, while the fresh basil leaves added at the final moment ensure a fragrant finish. Serve with a generous dusting of Parmesan for the ultimate comforting bowl of pasta.

Ingredients for Spaghetti with Tomato and Walnut Pesto

  • 100g walnuts

  • 1125ml cherry tomatoes, halved

  • 2 tablespoons plus 80ml olive oil, plus more for drizzling

  • Kosher salt

  • 6 oil-packed anchovies, coarsely chopped

  • 2 garlic cloves, coarsely chopped

  • 1 teaspoon finely grated lemon zest

  • 1/4 teaspoons crushed red pepper flakes

  • 15g Parmesan, finely grated (about 80g ), plus more for serving

  • 1 teaspoon freshly ground black pepper

  • 350g spaghetti

  • 1/2 cup (packed) basil leaves

How to make Spaghetti with Tomato and Walnut Pesto

Preheat oven to 177°C. Toast walnuts on a rimmed baking sheet, tossing once, until slightly darkened, 8–10 minutes. Let cool.

Heat grill. Toss tomatoes with 2 tablespoons oil on a rimmed baking sheet; season with salt. Grill, tossing once, until tomatoes are blistered and have released some of their liquid, 5–7 minutes. Let cool.

Pulse anchovies, garlic, lemon zest, red pepper flakes, and 15g Parmesan in a food processor until finely ground. Add walnuts and half of tomatoes, then, with motor running, stream in 80ml oil; process just until combined. Season with salt. Transfer pesto to a large bowl and stir in black pepper.

Cook pasta in a large pot of boiling salted water, stirring occasionally, until al dente. Drain, reserving 120ml pasta cooking liquid.

Transfer pasta to bowl with pesto and add a splash of pasta cooking liquid. Toss, adding more cooking liquid as needed, until sauce coats pasta. Add basil and remaining tomatoes.

Divide among bowls; top with more Parmesan and black pepper and drizzle with oil.

Pesto can be made 1 day ahead. Cover and chill.

Disclaimer

While every effort has been made to ensure the information is accurate and up to date, individual needs may vary and dietary requirements can differ based on personal health conditions. Always check food labels and allergen information before preparing or consuming any recipe. If you have specific health concerns, allergies, intolerances, or are following a medically prescribed diet, seek advice from your GP, pharmacist, or a registered dietitian before making significant changes to your diet or lifestyle.

Article history

The information on this page is peer reviewed by qualified clinicians.
  • 28 Jan 2026 | Originally published

    Authored by:

    UK recipe editors

    Peer reviewed by

    UK recipe editors

Online pharmacy, treatments and health services

Simple access to trusted treatments and health services online.

Common conditions

Get help with common conditions through the NHS, without a GP appointment.

Book your free Pharmacy First appointment

Sign up to the Patient newsletter

Your weekly dose of clear, trustworthy health advice - written to help you feel informed, confident and in control.

Please enter a valid email address

By subscribing you accept our Privacy Policy. You can unsubscribe at any time. We never sell your data.