The answer is: Wool is warm, but synthetic fibers are more water resistant.
There are several rules to use the comma, for example, separate a list of items or two independent ideas, here we are going to use the rule where you place a comma before the coordinating conjunction “but”, when you use this conjunction in a sentence it should be added a comm before it.