The country that Japan defeat in its first foreign war during the Meiji period would be China. In 1894, Japan fought a war with China over control of Korea. They easily defeated China on all counts and won control of both Korea and Formosa. Hope this answers the question.