After the 2000 Census, the Commonwealth of Pennsylvania was divided into 19 Congressional Districts, decreasing from 21 due to reapportionment. After the 2010 Census, the number of districts decreased again to 18.
List of members of the Pennsylvanian United States House delegation, their terms, district boundaries, and the districts' political ratings according to the CPVI. The delegation has a total of 18 members, with 13 Republicans, and 5 Democrats.
The Congressional Districts in Pennsylvania faced slight realignment for the 2012 election. Many sitting Congressional Representatives saw their districts modified or merged as part of the redistricting. An example of this would be the previous District Four (4) and Twelve (12). These two district saw major changes with the new realignment. The merger forced a primary runoff between the two sitting representatives in order to determine who would hold seat for the newly formed district.
The process of drawing district boundaries, or redistricting, in Pennsylvania is described here and here.
Since the 2010 Census and the 2012 elections, redistricting in Pennsylvania has been controlled by Republicans, who have driven the process to maximize partisan advantage. In 2012, Democrats won slightly more than 50% of the total vote in Pennsylvania Federal House elections,(50.5% in fact), yet only five of the state's 18 Federal Representatives are Democrats, as those voters have been intentionally concentrated in as few districts as possible.