A 15-year partnership with Community Windpower will see Nestle buying electricity generated by a new nine-turbine wind farm in Dumfries and Galloway once it opens in early 2017.
The Sanquhar community wind farm will produce around 125 gigawatt hours (GWh) of electricity a year – enough to power 30,000 homes, all of which will be bought by Nestle to meet 50% of its electricity needs in the UK and Ireland.
The partnership has given Community Windpower the assurance to go ahead with the project.
Nestle had already announced it would source its grid-supplied electricity from renewables in a deal with EDF, but said the deal to buy energy from the wind farm would ensure new low carbon power capacity was constructed.
Dame Fiona Kendrick, chief executive of Nestle UK & Ireland, said: "We announced back in April that all of our grid-supplied electricity is coming from renewable sources, but today's announcement takes things a huge step further.
"This is a newly-commissioned wind farm, generating new energy, creating capacity that didn't previously exist and capable of providing half of our electricity needs.
"It's a proud moment for us and means we have reached another key milestone in our efforts to become a sustainable business."
Rod Wood, managing director of Community Windpower, said: "Community Windpower are delighted to be working with Nestle by providing 50% of their energy requirements from our Sanquhar community wind farm project."
WWF Scotland director Lang Banks said: "It's great to see a company like Nestle supporting the construction of new wind farms to help power the manufacture of its products.
"With its huge renewable energy resources, Scotland is an ideal location to source the power needed to create products more sustainably. This is a great example of how business can help meet the UK's climate change targets."
Click below for more regional business news
Our BQ Bulletin emails will land in your inbox at 7.30am, Monday to Friday, with a mix of the latest local business news, national news, and features to inspire you. Sign up here!
Click here to read our privacy statement