All branches except the Coast Guard are part of the Department of Defense, which is controlled by the Secretary of Defense. The Coast Guard is part of the Department of Homeland Security. The Marine Corps is part of the Navy.