Abstract: The invention relates to a device for generating ammonia from an ammonia precursor solution, having a reaction space with an inflow connector through which an exhaust-gas flow can flow into the reaction space, having an outflow connector through which an ammonia-containing gas flow can exit the reaction space, and having a supply device by way of which selectively an ammonia precursor solution or a fuel can be supplied into the reaction space.