Whereas theDepartment of Defense is charged with military actions abroad, theDepartment of Homeland Security works in the civilian sphere to protect the United States within, at, and outside its borders. Its stated goal is to prepare for, prevent, and respond to domestic emergencies, particularly terrorism.