A shotgun is a type of gun. To make a shotgun work, gunpowder is lit by a primer inside of a shotgun shell. The gas from the burning gunpowder will push whatever is being fired out of the barrel. Usually a shotgun shell will have many small metal balls called "buckshot" or "birdshot". These balls spread out when they are fired. Sometimes a shotgun shell will have a bigger piece of metal, like a bullet, called a "slug".
A shotgun can have one or two barrels, each with a chamber to hold a shell. These barrels can be next to each other or on top of each other. There are also different types of ways of loading and shooting a shotgun. Some will snap open, and shells can be put inside until they are shot again. Others hold more shells and are pumped back and forth to shoot. Some shotguns are semi automatic, so each time the trigger is pulled, one shot is fired without any need to use a pump or a lever. Some shotguns are fully automatic, meaning that pulling and holding the trigger back will keep shooting the gun without needing to reload until the shotgun is out of ammunition. However, these are uncommon.
Shotguns can also fire things that do not kill people. Police use things like rubber balls and beanbags filled with the small metal balls instead, to cause non-deadly injuries.