What causes the green ring around hard-boiled eggs?

If you are one of those people who prefer their eggs hard-boiled, you have certainly noticed that green color ring around the yolk.

Now if you wonder if the eggs are safe to consume that way, the answer is yes. In fact, that green color comes from the sulfur in the egg white that reacts with the iron in the yolk due to overcooking.

While this color is totally harmless, if you prefer your eggs without it, there is a way of cooking them by taking into consideration the cooking and cooling time.