Gun powder was first invented in 1040 in China for fireworks and other things like that. It was also used in bombs that the
Chinese used against the mongols. After the mongols
conquered China they used the gun powder bombs during their invasion of Japan. During the time that gun powder was invented the Song Dynasty was in power. However in 1115 the Jurchen Jin Dynasty emerged and destroyed the Lia Dynasty in only 10 years. Soon the Jin and the Song dynasties were at war with one another. The discovery of gunpowder weapons played a large role in the Song Dynasty's naval victories in the battles of Tangdao and Caishi on the Yangtze river.