We consider simple random walks in dimensions three and higher. We show that the centered maximum local time converges to a Gumbel distribution and derive the sharp large-deviation rate for the maximum local time. A key ingredient of our approach is the excursion-erasure decomposition, a selective form of loop erasure that we introduce. Joint work with Xinyi Li.