The air-fuel ratio (AFR) is the ratio of the mass of air to the mass of fuel in the combustion chamber. It affects how efficiently and cleanly the fuel burns and how much power and torque the engine produces. Ideally, you want to achieve a stoichiometric AFR, which is the ratio that allows for complete combustion of the fuel with minimal excess oxygen or fuel. For gasoline engines, this is about 14.7:1, while for diesel engines, it is about 14.5:1. However, depending on the operating conditions and the engine load, you may need to adjust the AFR to improve performance or reduce emissions. For example, you can use a lean AFR (more air than fuel) to increase fuel economy and reduce carbon monoxide and hydrocarbons, but this may also reduce power and increase nitrogen oxides. You can use a rich AFR (more fuel than air) to increase power and reduce nitrogen oxides, but this may also increase fuel consumption and carbon monoxide and hydrocarbons. You can use sensors, injectors, and controllers to monitor and regulate the AFR according to the engine's needs.