At the University of Edinburgh's Roslin Institute, researchers have cracked the genetic code of sheep to reveal how they became a distinct species from goats around four million years ago.
The study is the first to pinpoint the genetic differences that make sheep different from other animals.
The findings could aid the development of DNA testing to speed-up selective breeding programmes, helping farmers to improve their stocks.
It also builds the most complete picture yet of sheep's complex biology. Further studies using this resource could reveal new insights to diseases that affect sheep.
The researchers, who receive strategic funding from the Biotechnology and Biological Sciences Research Council, were part of a global team that has decoded the genome sequence - the entire genetic make-up - of domestic sheep for the first time.
This team - the International Sheep Genomics Consortium - compared the sheep's genes with those of other animals - including humans, cattle, goats and pigs.
The analysis identifies several genes that are associated with wool production. It also reveals genes that underpin the evolution of the rumen - a specialised chamber of the stomach that breaks down plant material to make it ready for digestion.
The study is published in the journal Science.