"He called for an end to all violence and urged the interim authorities to ensure protection of the fundamental human rights of all Egyptians, including freedom of speech and assembly," a UN statement said, referring to Ban's message to Egyptian Foreign Minister Nabil Fahy.
Ban "reiterated his call for the release of Mr Mohammed Morsi," it said.
He stressed that "an inclusive and peaceful political process is the only viable way forward in Egypt," the statement added.