During peacetime, the United States Coast Guard needs to be kept in a state of readiness, in order to be ready to act at any time. This is the responsibility of the United States Department of Homeland Security. This responsibility can be transferred to the United States Navy in times of war.