Mohammadi had served in Afghanistan in the 1970s as water and power minister under president Mohammad Daoud. He was later imprisoned for two years after communists took over in a 1978 coup and assassinated Daoud. After being released, Mohammedi fled to the United States and spent most the 1980s and 1990s there working as a construction engineer and for the World Bank.
He was appointed to his position as Minister by interim president Hamid Karzai during a loya jirga in June, 2002.