China was a world leader in science and technology until the early years of Ming dynasty. Chinese discoveries and Chinese innovations such as paper making, printing, the compass, and gunpowder (the four great inventions) contributed to the economic development in East Asia, the Middle East and Europe.