After six years on Allentown City Council, Peter Schweyer resigned Wednesday in preparation for taking a seat in the state House.

Schweyer, 36, defeated Republican Steven Ramos by a 70 percent to 30 percent percent margin Tuesday in the 22nd House District that includes center city and south Allentown. He will be sworn in in January.

Schweyer said it had been a tremendous opportunity to serve his hometown both in times of crisis, such as the gas explosion that killed five in 2011, and in good times, as with the recent opening of the PPL Center.

"The funny or the ridiculous or the tragic stories are what I will remember from my time on council," he said.

Perhaps Schweyer's most memorable contribution to the board was his Lazy Double Parkers Bill, which created a law charging double parkers an additional $100 if a parking space sat open within 10 feet of their offense. The law was passed in 2012.

During his final two years on council, Schweyer headed council's Budget and Finance Committee. There he spearheaded legislation that tightened the city's budgeting process, requiring city officials to specify a revenue source before spending money on capital projects.

Past administrations had at times spent money from accounts with the assumption that funds would be transferred, causing a $1.7 million accounting error.

Schweyer also sat on the Parks and Recreation and Community and Economic Development committees, and served as president of the board from October 2011 to February 2012.