According to Wikipedia, Marin le Bourgeoys built the first flintlock for King Louis XIII around the year 1610. Of course, the flintlock did not replace the matchlock and wheellock instantly, but...
The flintlock musket fires a (usually lead) projectile with a charge of black powder. When the shooter pulls the trigger, it releases a spring loaded flint striker. The flint striker ignites primer...