Cannons were first used in the 14th century, but early artillery was primarily used to breach an enemy's defences and break sieges.