As can be seen here, a deck and framed wall are adjacent to each other, where water can enter into the wall cavity. Water from above roof had been splashing onto deck for many years and rotted the header, subfloor, and framing studs. I always recommend to clients when building a deck leave an air space between house and deck so that water can freely flow and not seep into framed structure.
Water into the wall cavity
