1. Short title This Act may be cited as the Prioritizing Energy-Efficient Renewables Act of 2017 . 2. Certain provisions of renewable energy credit made permanent (a) Wind Section 45(d)(1) of the Internal Revenue Code of 1986 is amended by striking , and the construction of which begins before January 1, 2020 . (b) Geothermal Section 45(d)(4)(B) of such Code is amended by striking the construction of which begins before January 1, 2017 and inserting is originally placed in service after October 22, 2004 . (c) Hydropower Section 45(d)(9)(A) of such Code is amended by striking and before January 1, 2017 both places it appears in clauses (i) and (ii). (d) Marine Section 45(d)(11)(B) of such Code is amended by striking and the construction of which begins before January 1, 2017 . (e) Conforming amendment Section 45(d)(9) of such Code is amended by striking subparagraph (C). (f) Effective date The amendments made by this section shall apply to property placed in service after December 31, 2016. 3. Repeal of deduction for intangible drilling and development costs in the case of oil and gas wells (a) In general Section 263(c) of the Internal Revenue Code of 1986 is amended by adding at the end the following new sentence: This subsection shall not apply to amounts paid or incurred in any taxable year beginning after December 31, 2017, by a taxpayer in the case of oil and gas wells. . (b) Effective date The amendment made by this section shall apply to amounts paid or incurred in taxable years beginning after December 31, 2017. 4. Repeal of deduction for oil and gas income attributable to domestic production activities (a) In general Section 199(c)(4)(B) of the Internal Revenue Code of 1986 is amended by striking or at the end of clause (ii), by striking the period at the end of clause (iii) and inserting , or , and by inserting after clause (iii) the following: (iv) the production, refining, transportation, or distribution of oil, natural gas, or any primary product (within the meaning of section 927(a)(2)(C), as in