Chile's Ministry of Defense said its website was hacked on Monday night by people claiming to belong to the Islamic State militant group, known by the acronym ISIS.
The homepage was replaced by a page entitled "Hacked" that gave a user name of "Sadam Husein" and said in English: "Sorry Admin Because Your Site Security is Low WE aRe ISIS" and in Spanish: "Allah is the only god."
The ministry removed the hacked page early on Tuesday and diverted browsers to the subsecretary of defense's website.
Media site soychile took a screenshot of the hacked page, which the ministry confirmed was genuine.
"The situation activated the corresponding alarms, measures were adopted and sensitive information from the ministry was not put at risk," the ministry said in a statement, adding that its email database was also unaffected.
Although Chilean government websites have been hacked before, this was the first such attack by anyone apparently supporting the hardline Islamist group that has take control of parts of Syria and Iraq.
Chile, a temporary member of the United Nations Security Council, has suffered a number of low-level bomb attacks by anarchists in recent years, but none related to trouble in the Middle East.
In 2003, when Chile was last on the Security Council, it refused to support the U.S.-proposed resolution to authorize military action against Saddam Hussein's government in Iraq.