Abstract. The well-established dynamical global vegetation, hydrology, and crop growth model LPJmL is extended with a terrestrial nitrogen cycle to account for nutrient limitations. In particular, processes of soil nitrogen dynamics, plant uptake, nitrogen allocation, response of photosynthesis and maintenance respiration to varying nitrogen concentrations in plant organs, and agricultural nitrogen management are included in the model. All new model features are described in full detail and the results of a global simulation of the historic past ) are presented for evaluation of the model performance. We find that the implementation of nitrogen limitation significantly improves the simulation of global patterns of crop productivity. Regional differences in crop productivity, which had to be calibrated via a scaling of the maximum leaf area index, can now largely be reproduced by the model, except for regions where fertilizer inputs and climate conditions are not the yield-limiting factors. Furthermore, it can be shown that land use has a strong influence on nitrogen losses, increasing leaching by 93 %.