M&M's were initially created and exclusively sold to the U.S. military during World War II. The candy's unique feature, a hard sugar shell, made it ideal for soldiers as it prevented the chocolate from melting in hot and humid conditions. This made them a practical addition to military rations.