Animals manure and chemical fertilizers are widely applied to agricultural soils to mitigate soil fertility decline resulting from intensive farming practices. However, the use of antibiotics such as ciprofloxacin (CIP) and enrofloxacin (ENR) in these manures introduces certain environmental risks. The sorption of CIP and ENR in soil is influenced by various factors. Soil cations (i.e., Na+, K+, Mg2+, and Ca2+) and artificially introduced ions (NH4+) can affect the sorption behavior of CIP and ENR in alkaline agricultural soils through mechanisms such as ion exchange and competitive sorption. To investigate the effects of ionic strength and ion type on the sorption of antibiotics in alkaline agricultural soil, batch equilibrium experiments were conducted in this study. The results showed that the affinity of alkaline farmland soil to CIP and ENR was poor, and Kd was only 159 L/kg and 89 L/kg, respectively. Increases in temperature and pH inhibited CIP and ENR sorption on soil. Mineral elements in the soil strongly inhibited CIP and ENR sorption. Conversely, NH4+ promoted the Kd values of CIP and ENR by 46% and 221%, respectively. Additionally, under different influencing factors, both the sorption affinity (Kd) and sorption amount of ENR were lower than those of CIP. These findings indicate that ENR has a greater migration potential and poses a greater environmental risk in agricultural soils. Alkaline soil and mineral elements increase the migration potential of CIP, ENR, but the introduction of NH4+ in agricultural production can weaken the migration potential of them.