An intelligence agency primarily collects foreign and military intelligence, sometimes by conducting espionage.