"Un-" is a prefix meaning "to undo" or "to reverse." So, "unraveled" means "to undo the process of ravelling."