Pastor was a member of the United States House of Representatives from Arizona from 1991 to 2015. He was a member of the Democratic Party. He represented Arizona's 2nd congressional district from 1991 to 2003, and Arizona's 7th congressional district from 2003 to 2015. The latter district was numbered as the 4th district from 2003 to 2013.