In return, the bloc will lift trade and economic sanctions and grant amnesty to the ruling junta, mediators said.
The move came after Tuareg rebels in the north declared independence of territory they call Azawad.
The rebels seized the area after a coup two weeks ago plunged the West African nation into political crisis.
Under the terms of transition plan, military rulers will cede power to the parliamentary speaker, Diouncounda Traore, who as interim president will oversee a timetable for elections.
Once sworn in, Diouncounda Traore would have 40 days to organize elections, the five-page agreement says.
The deal, signed by coup leader Captain Amadou Sanogo, states that Ecowas prepare for the ending of sanctions, but did not name a date for him to hand over power.
“It will be necessary to organise a political transition leading to free, democratic and transparent elections across the whole of the territory,” it states.
Officers led by Captain Amadou Sanogo seized power on 22 March, accusing the elected government of not doing enough to halt the rebellion in the north.
Earlier, international bodies rejected a call from Tuareg rebels for their newly named region of Azawad to be recognized as independent.
The secular National Movement for the Liberation of Azawad (MNLA) is one of two main groups fighting a rebellion in the north.
Ansar Dine, an Islamist group, has also made gains and has started to impose Sharia law in some towns.
Rights group Amnesty International has warned of a major humanitarian disaster in the wake of the rebellion.
Ecowas is preparing a force of up to 3,000 soldiers which could be deployed to stop the rebel advance.
France’s Defence Minister, Gerard Longuet, said France could provide assistance to the force, including transport, Reuters news agency reports.
The Tuareg people inhabit the Sahara Desert in northern Mali, as well as several neighboring countries and have fought several rebellions over the years.
They complain that they have been ignored by the authorities in the capital, Bamako.
The US House Ethics Committee has voted to release its report on former Republican Representative…
ABC News has agreed to pay $15 million to President-elect Donald Trump to settle a…
South Korea’s parliament has voted to impeach President Yoon Suk Yeol over his failed attempt…
Israeli war planes have carried out more than 100 air strikes in Syria on December…
President-elect Donald Trump has threatened to impose 100% tariffs on the BRICS countries if they…
Syrian troops have withdrawn from the city of Aleppo following an offensive by rebels opposed…