The present disclosure relates to a fabric treatment to impart stain resistance/repellence without adversely affecting the flammability of the fabric. Particularly, the present disclosure makes use of a composition comprising Compound A and Compound B optionally along with additives to impart stain resistance to the fabric and at the same time providing flame resistance to the fabric wherein compound A is a dispersion of fluoropolymers containing extender and compound B is a dispersion of oxime-blocked isocyanate . It also relates to a method of imparting stain resistance and flame resistance to fabric using the said composition.