A patent is a document explaining an invention that has intellectual property rights that give its owner the legal right to exclude others from making, using, or selling its invention for a limited time, in exchange for publishing an enabling disclosure of the invention.
The patent will protect the invention from replication by a time-limited monopoly given by the government, so people or companies feel motivated to innovate.