In this study, graphene oxide/N-halamine nanocomposite was synthesized through Pickering miniemulsion polymerization, which was then coated on cotton surface. The modified cotton exhibited excellent superhydrophobicity, which could effectively prevent microbial infestation and reduce the probability of hydrolysis of active chlorine, with virtually no active chlorine released in water after 72 h. Deposition of reduced graphene oxide nanosheets endowed cotton with ultraviolet-blocking properties, attributing to enhanced UV adsorption and long UV paths. Moreover, encapsulation of polymeric N-halamine resulted in improved UV stability, thus extending the life of N-halamine-based agents. After 24 h of irradiation, 85 % of original biocidal component (active chlorine content) was retained, and approximately 97 % of initial chlorine could be regenerated. Modified cotton has been proven to be an effective oxidizing material against organic pollutants and a potential antimicrobial substance. Inoculated bacteria were completely killed after 1 and 10 min of contact time, respectively. An innovative and simple scheme for determination of active chlorine content was also devised, and real-time inspection of bactericidal activity could be achieved to assure antimicrobial sustainability. Moreover, this method could be utilized to evaluate hazard classification of microbial contamination in different locations, thus broadening the application scope of N-halamine-based cotton fabrics.