Pedro Rivera was born in Philadelphia, growing up in the Hunting Park section of the city. His grandmother came to Philadelphia from Puerto Rico to take a job in a sewing factory. Rivera received a bachelor's degree in education from Pennsylvania State University, a master's degree in education administration from Cheyney University of Pennsylvania, and a superintendent letter of eligibility from Arcadia University. He spent 13 years working in the School District of Philadelphia, holding principal positions from August 2001 to July 2006, including principal of Sheridan Elementary School and assistant principal of Kensington High School. Rivera also held the positions of bilingual teacher, coordinator of English as a second language programs, and executive director of high schools, and finished his time there as director of the human resources department. He also served as president of the Philadelphia Association of Hispanic School Administrators.
Lancaster superintendent
On April 16, 2008, Rivera was appointed superintendent of the School District of Lancaster, which includes about 11,500 students. He was chosen by a 5–4 vote from the Lancaster School Board after a meeting that drew a great deal of heated public testimony, including racial overtones. The decision was described by Lancaster Online as "one of the most divisive in the district's recent history". Rivera was the district's sixth superintendent in 10 years, and at the time he started Lancaster was facing four multimillion-dollar building renovations, maintenance issues, low test scores and recent instability in leadership. During his tenure, the district improved graduation rates and reading proficiency scores, and saw high-performing student participation in programs designed for improving success in college. He also led the development of a new prekindergarten-to-12th-grade curriculum, an aggressive professional development plan, new teacher observation tools, and a community schools model that provides students free breakfast and lunch, eyeglasses, dental care and medical services. The district, which has a $160 million budget, has also experienced a fund balance growth from $4 million to $9 million during his time. Lancaster was recognized by The Washington Post as one of the state's top 20 high schools for academic rigor, and in September 2014, Rivera was honored by the White House as a "Champion of Change", and as one of the 10 Hispanic leaders in the United States doing "extraordinary work in education". Rivera was also president of the Pennsylvania League of Urban Schools, and sat on the board of the United Way, Economic Development Company of Lancaster County, and Association of Latino Administrators and Superintendents. In November 2014, Rivera joined five other school districts in filing a lawsuit in the Commonwealth Court of Pennsylvania against then-Governor Tom Corbett and other state officials, arguing they had "adopted an irrational funding system that does not deliver the essential resources students need".
On January 20, 2015, newly elected Governor Tom Wolf announced Rivera was his nominee to become Pennsylvania Secretary of Education. Wolf said he chose Rivera based in part on his record in improving urban education. Rivera said he would work to restore resources to schools, particularly those with needy populations, and that he would improve opportunities for early childhood learning and preparation for college and careers. The Pennsylvania State Education Association endorsed Rivera's nomination, particularly praising his advocacy for urban school districts. Rivera's nomination was confirmed by the Pennsylvania State Senate on June 3, 2015.