How was the Ring of Fire Formed?

The ring of fire was formed by the pacific plate rotating around and grinding all of its surrounding plates. For instance, in California, western Canada, Alaska, and Mexico, the pacific and North American plates are grinding against each other.