The rainfly can stop rainwater from coming inside the tent. However, not all rainflies have waterproof characteristics. You can make your rainfly waterproof using a waterproofing spray.