After the election of François Mitterrand as president, the two centre-right parliamentary parties reconciled. Gradually, the RPR abandoned Gaullist doctrine and joined the market-oriented and pro-European positions of the UDF. Although, they presented a common list at the 1984 European Parliament election, their leaders Chirac and Barre competed for the leadership of the French centre-right. Focused on winning the 1986 legislative election, Chirac, unlike Barre, accepted the principle of "cohabitation" with President Mitterrand. Furthermore, some UDF politicians (notably from the Republican Party) covertly supported Chirac. Consequently, he became Prime Minister, from 1986 to 1988, and the UDF played a supporting role in his cabinet and in the parliamentary majority.