Three fundamental documents had governed the territory now known as New Jersey. The first was the Concession and Agreement, which was written in 1665 by the colony's proprietors Lord John Berkeley and Sir George Carteret, and included a provision granting religious freedom. After Berkeley and Carteret sold New Jersey to the Quakers, the colony was split into West and East Jersey. Each had its own constitution: the West Jersey Constitution (1681) and the East Jersey Constitution (1683).</ref> The two were reunited in 1702 by Queen Anne.