A patent is a legal protection granted to an invention, providing exclusive rights to the inventor or applicant for a limited period. A patent gives the inventor the right to prevent others from making, using, selling, or importing the invention without their consent. It encourages innovation by providing inventors with a monopoly over their invention for a specific duration.