This paper studies the behavior of firms facing the decision to create a patent fence, defined as a patent portfolio of substitutable technologies. 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...