The FPSIM (version 2) dataset provides measures of foreign policy similarity of dyads based on alliance ties (Correlates of War, version 4.1) and UN General Assembly voting (Voeten, version 17) for all members of the international system (Correlates of War system membership list, version 5.0). The alliance data cover the time period from 1816 to 2012, and the UN voting data from 1946 to 2015.