In essence tho:
King Philip's War was a conflict between the puritan colonists of Massachusetts Bay, and the Massachusett people, primarily the Wampanoag, Nipmuck Narragansett, and Wabanaki. It happened between 1675 and 1678. The reason for this war was encroaching settlement on native ancestral lands, and in retaliation for the hanging of two Wampanoag warriors convicted of murdering "praying Indian" John Sassamon, who warned the governor of Massachusetts of King Metacomet's (King Philip was his English name) plans to push back on English law.
It was an extremely devastating war that led to the colonists, who already had a mistrust of natives, to be full blown paranoid of them, which created further recriminations even after the war. As a result of the destruction, King James II took control of the colonies and created the Dominion of New England, which was short-lived. When James was overthrown in the Glorious Revolution of 1688, the colonists violently rebelled and equally overthrew the Dominion's leadership.
Afterwards, the Nine Years' War between England's Alliance and France had crested a North American front where New France and New England fought each other alongside native contingents. It was just as bloody as King Philip's War.
The end of King William's War (named after William of Orange), left things in the Status Quo. However the colonists of Massachusetts Bay became so paranoid that it directly led to the Salem Witch Trials and all that followed. The trials became such a shamble that it completely killed the credibility of Puritanism. Later writers like Thomas Jefferson and especially Ben Franklin took the ideals of puritanism and distilling the egalitarian doctrines from that of the theological basis. These writings and beliefs came to form the American ideals of the Declaration of Indelencence.