In contrast to rifles and shotguns, pistols are compact and lightweight.
They are the most widely used option for home and self defense due to their size. The FBI, law enforcement, and other organizations favor it because of this:
They are concealable, accurate, and light. Close-range shooting is where pistols really shine, but not so much long range. You might wish to consider a rifle if you need to hit a target that is farther away.