Upon the outbreak of the Second World War, a laureate of several of France's highest literary awards and a successful pioneering aviator prior to the war, Saint-Exupéry initially flew with a reconnaissance squadron as a reserve military pilot in the Armée de l'Air (French Air Force). After France's defeat in 1940 and its armistice with Germany, he and Consuelo fled Occupied France and sojourned in North America, with Saint-Exupéry first arriving by himself at the very end of December 1940. His intention for the visit was to convince the United States to quickly enter the war against Nazi Germany and the Axis forces, and he soon became one of the expatriate voices of the French Resistance. In the midst of personal upheavals and failing health, he produced almost half of the writings for which he would be remembered, including a tender tale of loneliness, friendship, love and loss, in the form of a young prince visiting Earth.
An earlier memoir by the author recounted his aviation experiences in the Sahara, and he is thought to have drawn on the same experiences as plot elements in The Little Prince.
He wrote and illustrated the manuscript during the summer and fall of 1942. Although greeted warmly by French-speaking Americans and by fellow expatriates who had preceded him in New York, his 27-month stay would be marred by health problems and racked with periods of severe stress, martial and marital strife. These included partisan attacks on the author's neutral stance towards supporters of both ardent French Gaullist and Vichy France. Saint-Exupéry's American translator (the author spoke poor English) wrote: “He was restless and unhappy in exile, seeing no way to fight again for his country and refusing to take part in the political quarrels that set Frenchman against Frenchman.” However, the period was to be both a “dark but productive time” during which he created three important works.