Kenya passed a new anti-doping law on Tuesday that could allow it to compete at the Rio Olympic Games in August.
It had missed two deadlines set by the World Anti-Doping Agency (Wada) to show it was tackling cheating in sport.
The new law creates a national agency, giving lawmakers the possibility of imprisoning for up to a year and fining those found guilty of doping.
Wada, which set a final deadline of 2 May for Kenya to pass the law, will meet on 12 May to discuss the case.
The new law still needs to be signed off by President Uhuru Kenyatta, but Kenyan Sports Minister Hassan Wario is confident, saying: “Olympics here we come.”
Since 2011, more than 40 Kenyan athletes have failed drugs tests and the country’s Athletics Federation general manager Isaac Mwangi was suspended for six months at the end of February.
International Association of Athletics Federations president Lord Coe threatened Kenya with a ban if it did not pass the bill into law.
It meant some of the world’s top athletes would have missed Rio, with Kenya topping the medal table at the 2015 World Championships in Beijing with seven gold medals.