Panama gained its independence from Colombia in 1903 through a revolution that was supported by the United States. The correct statement is: Panama revolted against Colombia with the help of the United States.
The independence movement was largely driven by Panama's desire for greater autonomy and economic opportunity, particularly regarding the construction of a canal. The United States had strategic interests in building a canal across Panama, which influenced its decision to support the revolution against Colombian rule. The U.S. provided military support to the Panamanian rebels, which facilitated their success in declaring independence on November 3, 1903. Subsequently, the U.S. and Panama signed the Hay-Bunau-Varilla Treaty, which allowed the U.S. to construct and control the Panama Canal.