Sun Yat-sen was elected the first President of the Republic of China.

Source