Hanging ema at temples is a way to offer prayers and wishes for good fortune. The accumulated ema are burned in a special ritual during Hatsumode to send the wishes to the gods.