Invasive species and anthropogenic habitat alteration are major drivers of biodiversity loss. When multiple invasive species occupy different trophic levels, removing an invasive predator might cause unexpected outcomes owing to complex interactions among native and non-native prey. Moreover, external factors such as habitat alteration and resource availability can affect such dynamics. We hypothesized that native and non-native prey respond differently to an invasive predator, habitat alteration and bottom-up effects. To test the hypothesis, we used Bayesian state-space modelling to analyse 8-year data on the spatio-temporal patterns of two endemic rat species and the non-native black rat in response to the continual removal of the invasive small Indian mongoose on Amami Island, Japan. Despite low reproductive potentials, the endemic rats recovered better after mongoose removal than did the black rat. The endemic species appeared to be vulnerable to predation by mongooses, whose eradication increased the abundances of the endemic rats, but not of the black rat. Habitat alteration increased the black rat's carrying capacity, but decreased those of the endemic species. We propose that spatio-temporal monitoring data from eradication programmes will clarify the underlying ecological impacts of land-use change and invasive species, and will be useful for future habitat management.