A hybrid particle code has been used to examine the interaction of the solar wind with Mars during solar minimum. The results were surprising as they produced ion loss rates from Mars far in excess of what is estimated from MEX. The results are analyzed and found to be consistent with the competition between photochemical rates and advection of the ionosphere. The simulations showed significant erosion of the ionosphere at altitudes between 200 km and 250 km altitudes. Addition of the crustal magnetic fields reduced the erosion and reduced the ion loss rates to a level consistent with the data.