A patent was a document making it possible to pay royalties to the owners of technological designs and industrial techniques.
Some patented technology was used in USS Discovery, and labeled with a patent number. Sylvia Tilly encountered a component patented by Starfleet Command, San Francisco, numbered 292.2910ACB.e0 while swapping the particle matrix to repair the shields. (DIS: "Such Sweet Sorrow, Part 2")
Following Harry Mudd's departure from Rigel XII, he, in his own words "organized a technical information service bringing modern industrial techniques to backward planets, making available certain valuable patents to struggling young civilizations throughout the galaxy." Specifically, he sold to the Denebians all the rights to a Vulcan fuel synthesizer. Describing himself as a "defender of the free-enterprise system", Mudd opted not to pay royalties as a matter of principle, claiming that "knowledge... should be free to all."
Following the capture of Mudd and the USS Enterprise by the androids of the planet Mudd, Mudd jokingly told Spock that he "may be a wonderful science officer, but [he] couldn't sell fake patents to [his own] mother." (i.e. was incapable of fooling anyone, even someone who had cause to believe him) Spock, not understanding the meaning of Mudd's statement, replied, "I fail to understand why I should care to induce my mother to purchase falsified patents." (TOS: "I, Mudd")