Physical processes that could facilitate coherent control of light propagation are under active exploration. In addition to their fundamental interest, these efforts are stimulated by practical possibilities, such as the development of a quantum memory for photonic states. Controlled localization and storage of photonic pulses may also allow novel approaches to manipulating of light via enhanced nonlinear optical processes. Recently, electromagnetically induced transparency was used to reduce the group velocity of propagating light pulses and to reversibly map propagating light pulses into stationary spin excitations in atomic media. Here we describe and experimentally demonstrate a technique in which light propagating in a medium of Rb atoms is converted into an excitation with localized, stationary electromagnetic energy, which can be held and released after a controllable interval. Our method creates pulses of light with stationary envelopes bound to an atomic spin coherence, offering new possibilities for photon state manipulation and nonlinear optical processes at low light levels.