This paper studies the behaviour of firms facing the decision to create a patent fence, defined as a portfolio of substitute patents. We set up a patent race model, where firms can decide either to patent their inventions, or to rely on secrecy. It is shown that firms build patent fences, when...