The office of President of Slovenia, officially President of the Republic of Slovenia (), was created on 23 December 1991 when the National Assembly passed a new Constitution as a result of independence from the Socialist Federal Republic of Yugoslavia.