What is a major benefit for a nation to devalue its currency?

What is a major benefit for a nation to devalue its currency?