The United States formally established a naval base on the bay in 1903, after leasing 45 square miles of land and water from the newly independent Cuban government, according to the U.S. Navy.
https://www.washingtonpost.com/world/2025/01/30/guantanamo-bay-migrants-history-trump/

