The President of Tunisia, formally known as the President of the Republic of Tunisia (, ) is the head of state of Tunisia.The position was created in 1957 when Habib Bourguiba,who had been prime minister,overthrew the King.Thirty years later Bourguiba was overthrown by his own prime minister.Today the president is freely elected.