A patent is a legal right granted by a government to an inventor, giving them exclusive rights to their invention for a limited period. It provides the inventor with the ability to prevent others from making, using, or selling their invention without permission. Patents are intended to encourage innovation by providing inventors with an incentive to invest time and resources in developing new technologies.