The current border between Serbia and Croatia was defined in 1945 by a Yugoslav federal government commission which assigned areas with a majority Serb population to the Socialist Republic of Serbia and those with a Croatian majority to the Socialist Republic of Croatia.