The legal basis for the Coast Guard is Title 14 of the United States Code, which states: "The Coast Guard as established January 28, 1915, shall be a military service and a branch of the armed forces of the United States at all times." Upon the declaration of war or when the President directs, the Coast Guard operates under the authority of the Department of the Navy. The Coast Guard later moved to the Department of Transportation in 1967, and on February 25, 2003 it became part of the Department of Homeland Security.
As members of a military service, Coast Guardsmen on active and reserve service are subject to the Uniform Code of Military Justice and receive the same pay and allowances as members of the same pay grades in the other four armed services.