A patent is a legal document granted by the government that provides the inventor with exclusive rights to prevent others from making, using, selling or importing an invention for a certain period of time in exchange for disclosing the invention to the public.