The European Union said Sunday that restoring democracy in Venezuela must respect international law and the will of its people, after the United States removed President Nicolas Maduro in a military operation.

The U.S. attacked Venezuela on Saturday and deposed its long-serving President ‌Nicolas Maduro in an overnight operation, in ‍Washington's most direct intervention in Latin America since the 1989 invasion of Panama.

"The EU recalls that, under all circumstances, the principles of international law and the U.N. Charter must be upheld. Members of the United Nations Security Council have a particular responsibility to uphold those principles, as a pillar of the international security architecture," the EU's top diplomat Kaja Kallas said in a statement supported by ‍all 26 members of the bloc except for Hungary.

The joint ⁠statement called for restraint from all sides to ensure a peaceful solution. The EU has said Maduro lacked democratic legitimacy, and called for a transition to democracy determined by the will of the Venezuelan people.

"Respecting the will of the Venezuelan people remains the only way for Venezuela to restore democracy and resolve the current crisis," the statement ‌said.