Did you try to find information on your own? With what result? As it is, your question doesn't show any research effort (at least narrowing things down wouldn't have been hard).
–
Wladimir PalantOct 19 '11 at 8:32

4

No need to be snarky guys. Maybe he thought this would be a good example question, remember we are still in beta.
–
Christopher RaylOct 19 '11 at 14:09

3 Answers
3

The first recorded battle using what is believed to be gunpowder is the siege of Di'an in 1132. Although the weapons are not guns, it is well attested that the Chinese at this time had perfected gunpowder, so it can be assumed that this is what is being used.

Guns appear in China during the 12th and 13th century, the oldest preserved one is from around 1288. It can in general be assumed that they were used during all Chinese battles at this time, although no records specifically mentions them, as they weren't news and hence not worthy of mention.

However, when the Mongols used catapult launched bombs at the battle of Mohi it was certainly news to the Hungarians, and as such several sources report this. It's therefore often cited as the first mention of gunpowder in a battle.

Various claims have been made by alleged inventors and the Germans without any foundation claimed to have invented it in the early part of the 14th Century.
Written evidence exists however, that the English monk, Roger Bacon, wrote about gunpowder in 1267. Even this was late as there is no doubt that Arabs used it at the siege of Mecca in 690AD.

There are some grounds for believing that gunpowder was known to the Hindu Indians centuries before the siege of Mecca and this theory is borne by the following extract from a law code known as the Gentoo Laws, written about 1300 B.C.

"THE MAGISTRATE WILL NOT MAKE WAR WITH CANNON OR WITH ANY KIND OF
FIREARM”

It should be noted that the words "cannon" and "firearm" would appear to have the same meaning. This text proves that Indians did in fact use some kind of propellant powder and in all probability was of similar composition of the present day, black powder. The Gentoo Laws lend some support to this claim as far as gunpowder is concerned. Wherever it was first used, gunpowder certainly was not invented by any of the Western races, as all evidence suggests it originated in the East and travelled westwards

If you consider Greek fire as a precursor of gunpowder, then the first use if around 671 AD by the Byzantine fleet in Constantinople.
Anyway, my answer is to point to the book by JR Partington whose title is "A history of Greek fire and gunpowder".