The article is devoted to the formation of the foreign policy of Azerbaijan after the acquisition of independence in 1991. The author analyzes the foreign policy course of the first presidents of the country, identifies strengths and weaknesses of the domestic and foreign policies of each. Particular attention is paid to internal factors that determined international position of Azerbaijan.