The Department of State with its Ambassadors and Diplomats build strong relations with foreign powers to ensure the nation's safety.
The Department of State is the Diplomatic wing of the government, and it handles international affairs.
So it's safe to say that they're responsible for building relations with other nations in order to ensure the safety of the nation.