Article I, Section 8, clause 8 of the Constitution states: "[The Congress shall have power] To promote the Progress of Science and useful Arts, by securing for limited Times to Authors and Inventors the exclusive Right to their respective Writings and Discoveries . . . ."
For a thorough discussion of this provision, see: