The deal is expected to close later this year.
“Millions of people love Whole Foods Market because they offer the best natural and organic foods, and they make it fun to eat healthy,” Amazon Founder and CEO Jeff Bezos said in the statement. “Whole Foods Market has been satisfying, delighting and nourishing customers for nearly four decades – they’re doing an amazing job and we want that to continue.”
Under the deal, Whole Foods will continue to operate stores under the Whole Foods brand, and its CEO John Mackey will retain his position, Amazon said.
Amazon had considered taking over Whole Foods last fall, Fortune previously reported. Whole Foods has seen its shares fall by half since 2013.
This piece originally appeared on Fortune.