it was israel's first capital when the nation was established in 1948. the capital was moved to jerusalem in 1949, but the israeli ministry of defense and many foreign embassies stayed in tel aviv. most israeli ministries that are located in jerusalem, have offices in tel aviv. the national intelligence agencies of israel, mossad (external security), aman (military intelligence) and shin bet (internal security) also have their headquarters in tel aviv.