A rainy night in a tent can be cosy, provided that the tent stays dry inside. The sound of rain on the fabric is comforting, and there is something satisfying about being warm and dry while it pours. The trick is to keep the wet world outside and the dry world inside. Before you set off, check the forecast, find out what applies where you are camping, and let someone know where you will be and when you will be back.
Two zones
Divide the tent into two zones as soon as it starts to rain. The sleeping area is for dry things only: sleeping bags, dry clothes, a pillow and a head torch. The porch, or the space just inside the door, is for everything wet. Wet boots, waterproof jackets and dripping rucksacks belong there, ideally in a bin bag or on a plastic sheet. That way the damp does not creep into your bed.
Try not to touch the inner walls of the tent. Fabric that is touched on the inside can let water through on the outside, and condensation makes things worse. Keep your sleeping bag away from the sides and leave a small gap for air. A small vent or a door opened a crack lets moisture out, and a cloth hanging near the door can catch drips. Do not cook inside the tent, even in the porch.
Change into dry clothes before you get into your sleeping bag. Put wet socks and trousers in a bag, and keep one dry set purely for the night. If you have a spare towel, use it to dry your hair and hands at the door. A hat helps when it gets colder towards morning. Keep your phone and torch in a dry pouch, so you can find them without opening the whole bag.
In the morning, do not rush. Wait for a gap in the rain if you can, then shake the water off the tent before you take it down. Pack wet items separately from dry ones, and put the wettest things in a bin bag. When you get home, hang the tent out to dry as soon as possible, so that it does not smell musty the next time you use it.