Jerry rigging (also Jury Rigging) refers to makeshift repairs or temporary contrivances, made with only the tools and materials that happen to be on hand, originally a nautical term. On sailing ships, a jerry rig is a replacement mast and yards (which hold the ship's rigging) improvised in case of damage or loss of the original mast.
The phrase "jerry rigged" has been in use since at least 1788. The adjectival use of "jerry", in the sense of makeshift or temporary, has been said to date from at least 1616 when it supposedly appeared in John Smith's A Description of New England. However, the word "jerry" does not appear in the digital form of this document, as edited by Paul Royster of the University of Nebraska-Lincoln.  It appeared in Smith's more extensive The General History of Virginia, New-England, and the Summer Isles published in 1624.
There are several theories about the origin of this usage of "jerry":
- From the Latin adjutare ("to aid") via Old French ajurie ("help or relief").
- A corruption of joury mast—i.e. a mast for the day, a temporary mast, being a spare used when the mast has been carried away. (From French jour, "a day".)
- Contraction in the nautical tradition for injury
Ships typically carried a number of spare parts (e.g., items such as topmasts), but the lower masts were too large to carry spares, at up to one meter in diameter. So a jerry mast could be various things. Ships always carried a variety of spare sails, so rigging the jerry mast once erected was mostly a matter of selecting appropriate size. Contemporary drawings and paintings show a wide variety of jerry rigs, attesting to the creativity of sailors faced with the need to save their ships. Example jerry-rig configurations are:
- A spare topmast
- The main boom of a brig
- To replace the foremast with the mizzenmast: mentioned in W. Brady's The Kedge Anchor (1852)
- The bowsprit set upright and tied to the stump of the original mast.
The jerry mast knot is often mentioned as a method to provide the anchor points for securing makeshift stays and shrouds to the new mast. However, there is a lack of hard evidence regarding the knot's actual historical use.
Although ships were observed to perform reasonably well under jerry rig, the rig was quite a bit weaker than the original, and the ship's first priority was normally to steer for the nearest friendly port and get replacement masts.
- The phrase "jury-built" has a separate origin and implies shoddy workmanship not necessarily of a temporary nature.
- Bricolage is building from what happens to be available.
- To "MacGyver" something is to rig up something in a hurry using materials at hand, from the title character of the U.S. television show of the same name, who specialised in such improvisation stunts.
- In New Zealand, having a "Number 8 wire mentality" means to have the ability to make or repair something using any materials at hand (such as standard farm fencing wire).
- "Nigger-rig" is based on the racial slur "nigger". The term is considered offensive and vulgar. The phrase "ghetto rigging" may have similar origin. It can also be referred to as "Afro-engineering".
- Israel, Mark (29 September 1997). "jerry-built"/"jury-rigged". alt.usage.english Word Origins FAQ. Retrieved 28 February 2013.
- The Oxford English Dictionary, Volume V, H-K (Oxford: Clarendon Press, 1933; corrected reprinting 1966), 637.
- Captain and Admiral John Smith, and Paul Royster, ed., A Description of New England (1616): An Online Electronic Text Edition, Electronic Texts in American Studies. Paper 4. (Lincoln, NE: University of Nebraska-Lincoln, 1616;2013) University of Nebraska-Lincoln digital republication. ()
- Captaine Iohn Smith, The Generall Historie of Virginia, New-England, and the Summer Isles (London: Michael Sparkes, 1624; 2006 UNC digital republication), 223. (Online edition.)
- Note that in the orthography of Early Modern English 'I' was often used in place of 'J', thus the actual quote from Smith(1624) reads, "...we had re-accommodated a Iury-mast to returne for Plimoth..."
- Robert K. Barnhart, ed., Barnhart dictionary of etymology, (New York: H. W. Wilson Company, 1988), 560.
- E. Cobham Brewer 1810–1897. Dictionary of Phrase and Fable. 1898.
- Charles Hamel, "Investigations on the Jury Mast Knot"    Accessed 2007-02-22.
- William and Mary Morris, Morris Dictionary of Words and Phrase Origins, 2nd Edition (New York: HarperCollins, 1988), 321-322.
- Wilton, Dave. "jerry-built / jury rig". wordorigins.org. wordorigins.org. Retrieved 28 February 2013.
- "Urban Dictionary: MacGyver". Urban Dictionary. Retrieved 28 February 2013.
- J.E. Lighter, ed. (1997). "nigger-rig". Random House Historical Dictionary of American Slang. 2 (H-O). New York: Random House. p. 664.
- John Harland, Seamanship in the Age of Sail (Naval Institute Press, 1984)