A settlement was not successfully negotiated and ownership of the island remained in dispute between the Kingdom of Great Britain and the Spanish Empire in the early 1790s. The two countries nearly began a war over the issue; the confrontation became known as the Nootka Crisis. That was averted when both agreed to recognize the other's rights to the area in the first Nootka Convention in 1790, a first step to peace. Finally, the two countries signed the second Nootka Convention in 1793 and the third Convention in 1794. As per that final agreement, the Spanish dismantled their fort at Nootka and left the area, giving the British sovereignty over Vancouver Island and the adjoining islands (including the Gulf Islands).