A patent is a legal right granted to an inventor or entity that provides exclusive control over an invention, preventing others from replicating, using, or selling it without permission. Patents are issued by governing authorities and typically last for a period of 20 years.