This paper provides evidence on the strategic lending decisions made by banks facing a negative funding shock. Using bank-firm level credit data, we show that banks reallocate credit within their domestic loan portfolio in at least three different ways. First, banks reallocate to sectors where they have high sector presence. Second, they also reallocate to sectors in which they are heavily specialized. Third, they reallocate credit towards low-risk firms. These reallocation effects are economically large. A standard deviation improvement in sector presence, sector specialization or firm risk reduces the transmission of the funding shock to credit supply by 20, 13 and 10%, respectively. We also provide insight in the timing of these reallocation decisions. Reallocation to sectors in which a bank has a high sector presence is almost instantaneous, while sector specialization starts playing a role four to five months after the shock.