In May 1948, with the establishment of the state of Israel, Tel Aviv was made the country's provisional capital and was subsequently bombed several times by the Egyptian military. In 1949 the administrative capital was transferred to Jerusalem, although the Ministry of Defense remained in Tel Aviv for security reasons