The current study goal was to improve mucoadhesive potential and ocular pharmacokinetics of nanoparticles of thiolated xyloglucan (TXGN) containing moxifloxacin (MXF). Thiolation of xyloglucan (XGN) was achieved with esterification with 3-mercaptopropionic acid. TXGN was characterized by NMR and FTIR analysis. The nanoparticles of TXGN were prepared using ionic-gelation method and evaluate the antibacterial properties. TXGN and nanoparticles were determined to possess 0.06 and 0.08 mmol of thiol groups/mg of polymer by Ellman's method. The ex-vivo bioadhesion time of TXGN and nanoparticles was higher than XGN in a comparative assessment of their mucoadhesive properties. The creation of a disulfide link between mucus and TXGN is responsible for the enhanced mucoadhesive properties of TXGN (1-fold) and nanoparticles (2-fold) over XGN. Improved MXF penetration in nanoparticulate formulation (80 %) based on TXGN was demonstrated in an ex-vivo permeation research utilizing rabbit cornea. Dissolution study showed 95 % release of MXF from nanoparticles. SEM images of nanoparticles showed spherical shape and cell viability assay showed nontoxic behavior when tested on RPE cell line. Antibacterial analysis revealed a zone of inhibition of 31.5 ± 0.5 mm for MXF, while NXM3 exhibited an expanded zone of 35.5 ± 0.4 mm (p < 0.001). In conclusion, thiolation of XGN improves its bioadhesion, permeation, ocular-retention and pharmacokinetics of MXF.