A patent protects your invention for up to 20 years. During that period competitors cannot copy or use the technology for commercial purposes. That makes it possible for you to recoup your development investment. By issuing patents the government makes it worthwhile for companies to continue innovating.