How was Taiwan created?

Taiwan was created when Chinese Nationalists, after being defeated by the Communists, fled to Taiwan and created a new republic.