Flashing is a good way of preventing water from entering a dwelling at the point where the roof meets the walls. To begin the installation, fold a five-by-seven piece of aluminum flashing lengthwise.