Patents are exclusive rights granted by a government to an inventor for a limited period, typically 20 years, in exchange for detailed public disclosure of an invention. They provide a legal means to prevent others from making, using, or selling the invention without permission.