Upon the signing of the Treaty of Paris on December 10, Puerto Rico became a territory of the United States. The Spanish troops had already left by October 18, and the United States named General Nelson A. Miles military governor of the island. On July 1, 1899, "The Porto Rico Regiment of Infantry, United States Army" was created, and approved by the U.S. Congress on May 27, 1908. The regiment was a segregated, all-volunteer unit made up of 1,969 Puerto Ricans.