TITLE 14 - US CODE - CHAPTER 1 - ESTABLISHMENT AND DUTIES

14 USC 1 - Establishment of Coast Guard

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. The Coast Guard shall be a service in the Department of Homeland Security, except when operating as a service in the Navy.

14 USC 2 - Primary duties

The Coast Guard shall enforce or assist in the enforcement of all applicable Federal laws on, under, and over the high seas and waters subject to the jurisdiction of the United States; shall engage in maritime air surveillance or interdiction to enforce or assist in the enforcement of the laws of the United States; shall administer laws and promulgate and enforce regulations for the promotion of safety of life and property on and under the high seas and waters subject to the jurisdiction of the United States covering all matters not specifically delegated by law to some other executive department; shall develop, establish, maintain, and operate, with due regard to the requirements of national defense, aids to maritime navigation, ice-breaking facilities, and rescue facilities for the promotion of safety on, under, and over the high seas and waters subject to the jurisdiction of the United States; shall, pursuant to international agreements, develop, establish, maintain, and operate icebreaking facilities on, under, and over waters other than the high seas and waters subject to the jurisdiction of the United States; shall engage in oceanographic research of the high seas and in waters subject to the jurisdiction of the United States; and shall maintain a state of readiness to function as a specialized service in the Navy in time of war, including the fulfillment of Maritime Defense Zone command responsibilities..[1]
[1] So in original.

14 USC 3 - Relationship to Navy Department

Upon the declaration of war if Congress so directs in the declaration or when the President directs, the Coast Guard shall operate as a service in the Navy, and shall so continue until the President, by Executive order, transfers the Coast Guard back to the Department of Homeland Security. While operating as a service in the Navy, the Coast Guard shall be subject to the orders of the Secretary of the Navy who may order changes in Coast Guard operations to render them uniform, to the extent he deems advisable, with Navy operations.

14 USC 4 - Operation as a service in the Navy

Whenever the Coast Guard operates as a service in the Navy:
(a) applicable appropriations of the Navy Department shall be available for the expense of the Coast Guard;
(b) applicable appropriations of the Coast Guard shall be available for transfer to the Navy Department;
(c) precedence between commissioned officers of corresponding grades in the Coast Guard and the Navy shall be determined by the date of rank stated by their commissions in those grades;
(d) personnel of the Coast Guard shall be eligible to receive gratuities, medals, and other insignia of honor on the same basis as personnel in the naval service or serving in any capacity with the Navy; and
(e) the Secretary may place on furlough any officer of the Coast Guard and officers on furlough shall receive one half of the pay to which they would be entitled if on leave of absence, but officers of the Coast Guard Reserve shall not be so placed on furlough.

14 USC 5 - Secretary defined

As used in this title, the term Secretary means the Secretary of the respective department in which the Coast Guard is operating.