Many European regions are currently experiencing a significant population decline and, related to this, are increasingly confronted with labour shortage. Migration is a main driver of changes in regional labour supply and the local level of human capital. A region's ability to attract residents thus becomes more and more important for its growth prospects. We use a large panel dataset for the period 2003 to 2017 to investigate the relationship between local attributes and the migration balance of regions in Germany. In particular, we examine whether the factors that determine the migration balance of regions significantly differ across age and skill groups because their contribution to regional human capital likely varies. Our econometric specification can be understood as an aggregate formulation of a two‐region random utility model. The dataset includes 30 factors that might potentially influence a region's migration balance. Given this large number of explanatory variables and significant multicollinearity issues, we apply machine learning techniques [least absolute shrinkage and selection operator (LASSO), complete subset regression] to identify important local characteristics. Our results point to a robust negative relationship between the net migration rate and population density, yet locations in close proximity to large urban centres seem to be rather attractive destination regions, and the size of the effects differs significantly across age and skill groups. Moreover, labour market conditions and some amenities are significantly correlated with the region's migration balance. However, the former and, in particular, facilities for vocational training matter primarily for young workers.