The short answer
There was no split, because Korea and Japan were never one country. They have been separate political entities for as long as either has had a state. Confusion usually comes from the sea that lies between them, from the close contacts in the medieval period, and from the modern history of Japanese rule over Korea.
Why people ask this
The question often comes up because the two countries are geographically close and share some cultural history. Korea and Japan are separated by the Korea Strait, and sea levels in earlier ice ages may have linked the peninsula and the islands by land. Those changes happened tens of thousands of years before any states existed, so they do not describe a political split.
The more recent event that people sometimes confuse with a split is Japanese rule over Korea. Japan annexed Korea in 1910, and that rule ended in 1945 after Japan’s defeat in the Second World War. Korea was then divided, and two separate states were founded in 1948.
Separate states in the medieval period
Korea’s medieval states and Japan’s early states developed on their own paths. The Silla kingdom, for example, dealt with Tang China and with its own rivals on the peninsula. The Baekje kingdom had contacts with Japan, and Japanese chronicles say that Buddhism reached Japan through Baekje in the 6th century. Historians debate the exact date.
Relations were not always peaceful. During the late Goryeo period, raids by Japanese pirates, known as wokou, struck Korean coasts. Later, in the 1270s and 1280s, Goryeo was forced to supply ships and troops for the Mongol invasions of Japan, which failed.
Japan’s government also developed differently from Korea’s. Japan’s warrior government is often compared with European feudalism, and readers interested in that comparison can look at feudalism in europe vs japan. Goryeo and Joseon Korea had their own systems of land and office, so any comparison with Japan needs care.
Modern separation
Japan annexed Korea in 1910, and Japanese rule lasted until 1945. After the end of the Second World War, Korea was divided into two zones, and in 1948 two separate states were established on the peninsula. Japan and Korea have had their own governments since then, and their histories have been separate for the whole of the modern period.
Common follow-up questions
Readers who ask this question often also ask who is older, Korea or Japan. That question depends on how each state is defined, and the short answer is that Korean kingdoms appear earlier in the written record.