The precise spatiotemporal control of chemokine exposure would be an advantageous tool for immune cell research. Here, Chen et al. develop a two-photon-activatable chemokine CCL5 and use it to direct lymphocyte migration in vivo and to show that PI3-kinase is not required to sense a gradient in vitro.