Stealing thunder is to use someone else's idea for one's own advantage, or to pre-empt them.
The idiom comes from the peevish dramatist John Dennis early in the 18th century, after he had conceived a novel idea for a thunder machine for his unsuccessful 1709 play Appius and Virginia and later found it used at a performance of Macbeth. There is an account of the incident in The Lives of the Poets of Great Britain and Ireland by Robert Shiels and Theophilus Cibber:
A more accepted version, written by William Shepard Walsh who quoted Joseph Spence, is that the saying came after a performance of Macbeth:
Etymologists have theorized that the phrase may have connected to the stealing of thunder from the Roman god, Jupiter, and that the usage of the saying was common in theater settings before the Dennis attribution. The first noted use of the phrase outside of the theater, in print form and used in the known sense, was traced back to the early 19th century.[1]
In a contentious situation, such as a court case, a political debate or a public relations crisis, it is a tactic used to weaken the force of an adverse point. By introducing the point first and being open about it or rebutting it, the force of the opposition's argument is diminished – their thunder is stolen.