The outer edges of an egg yolk turn green due to a reaction between the natural sulfur and iron in the egg white and yolk, respectively. Especially with longer cooking at higher temperatures, this ferrous sulfide forms easily. It's also more likely to occur with older eggs. To prevent the ominous green ring, cook the eggs at a lower temperature and for less time.