Philadelphia was founded in 1682 by William Penn, an English Quaker and advocate of religious freedom, and served as the capital of the colonial era Province of Pennsylvania. [3][15] It then played a vital role during the American Revolution and Revolutionary War.