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 22, 8 and 10%, respectively.