The United States gained Spain's colonies of the Philippines, Guam and Puerto Rico in the treaty, and Cuba became a U.S. protectorate. The treaty came into force in Cuba April 11, 1899, with Cubans participating only as observers. Having been occupied since July 17, 1898, and thus under the jurisdiction of the United States Military Government (USMG), Cuba formed its own civil government and gained independence on May 20, 1902, with the announced end of USMG jurisdiction over the island. However, the U.S. imposed various restrictions on the new government, including prohibiting alliances with other countries, and reserved the right to intervene. The U.S. also established a "de facto" perpetual lease of Guantánamo Bay.