Since 1640, Portugal had been fighting a war against Spain to restore its independence after a dynastic union of sixty years between the crowns of Spain and Portugal. Portugal had been helped by France, but in the Treaty of the Pyrenees in 1659 Portugal was abandoned by its French ally. Negotiations with Portugal for Charles's marriage to Catherine of Braganza began during his father's reign and upon the restoration, Queen Luísa of Portugal, acting as regent, reopened negotiations with England that resulted in an alliance. On 23 June 1661, a marriage treaty was signed; England acquired Catherine's dowry of Tangier (in North Africa) and the Seven islands of Bombay (the latter having a major influence on the development of the British Empire in India), together with trading privileges in Brazil and the East Indies, religious and commercial freedom in Portugal and two million Portuguese crowns (about £300,000); while Portugal obtained military and naval support against Spain and liberty of worship for Catherine. Catherine journeyed from Portugal to Portsmouth on 13–14 May 1662, but was not visited by Charles there until 20 May. The next day the couple were married at Portsmouth in two ceremonies—a Catholic one conducted in secret, followed by a public Anglican service.