Coal wettability plays a significant role in the efficiency of coalbed methane (CBM) extraction since it determines fluid transport and distribution. Deep coal seam aqueous fluids have a high salinity. Consequently, coal wettability experiments utilizing fresh water are not representative for those coal seams. Therefore, the effect of aqueous fluids with inorganic salt ions on coal wettability needs to be investigated. In this study, both experiments and molecular simulations are conducted to unravel the wetting behaviour and mechanisms of saline fluids on coal surfaces, investigating different fluid salt concentrations, temperatures, valence states, and coal pore sizes. The results reveal that a more saline fluid displays a more hydrophobic behaviour on the coal surface. Microscopically, water molecules have a tendency to assemble around cations and anions as hydration shells and gradually detach from the coal surface, leading to a gradual transition from hydrophilicity to hydrophobicity. A change in wettability with fluid salinity can be caused by two mechanisms. On the one hand, an increase in ion concentration constrains the diffusion of water molecules through hydration, weakening the mobility of water molecules. On the other hand, a higher ion concentration weakens the interaction between water molecules and oxygen-containing functional groups, reducing the affinity of the water molecules with the pore wall. Moreover, at higher temperatures, ion valence states, and for coal with smaller pores, the impact of inorganic salt ions in fluids on the wetting behaviour of coal surfaces becomes more significant. The coal wettability influences the capillary pressure of coal pores. This study provides new insights on the effect of saline fluids on coal wettability which may help address challenges of fracturing fluid loss and water-blocking in CBM production activities.