Question: why do onions and garlic turn green?
Answer: Acidity releases sulfur naturally occurring in the garlic which combines with trace copper either from your pan or from your water or already present in the garlic, which forms copper sulfate a greenish blue compound. It is considered harmless in trace amounts involved in cooking.