Recent legislation has moved the Coast Guard to the Department of Homeland Security. However, the Coast Guard is considered a military service, because, during times of war or conflict, the president of the United States can transfer any or all assets of the Coast Guard to the Department of the Navy.