According to the Merriam-Webster Dictionary, the term "G-man" was first used in the year 1928. The earliest citation in the Oxford English Dictionary for the American usage of the term "G-man" was in 1930, from a biography of Al Capone by F. D. Pasley. In popular legend, the term originated during the September 1933 arrest of the gangster George "Machine Gun" Kelly by agents of the Bureau of Investigation (BOI), a forerunner of the FBI. Finding himself unarmed, Kelly supposedly shouted, "Don't shoot, G-men! Don't shoot!", although this is probably a fabrication.
The term was the basis of the title for the 1935 film G Men, starring James Cagney, which was one of the top-grossing films of that year.
Kelly's surrender is dramatized in the 1959 film The FBI Story. The encounter with Kelly is similarly dramatized in the 1973 film Dillinger. The film was followed by a 1974 television film titled Melvin Purvis: G-Man.
The Spanish Rock band Hombres G got its name in 1983 from the Spanish translation of "G-man" and after the James Cagney film G Men.
In the Half-Life video game series (1998–), one of the main characters is a "sinister interdimensional bureaucrat" nicknamed the G-Man. Dressed in a suit and tie, and often carrying a briefcase, he speaks in a cryptic manner, and periodically intervenes to store or utilise the player character, Gordon Freeman, to shape events.