As a Legitimist, Gobineau disliked the House of Bonaparte and was displeased when Louis-Napoleon Bonaparte was elected president of the republic in 1848.[42] However, he came to support Bonaparte as the best man to preserve order, and in 1849, when Tocqueville became Foreign Minister, his friend Gobineau became his chef de cabinet.[43]