US patents are granted by the USPTO and generally last 20 years from filing, in exchange for publicly disclosing the invention.