A trademark is a mark used in trade to identify the source of goods or services.
A patent is government-granted right to exclude others from making, using, selling, or importing your invention.