Restoring habitat connectivity for the critically-endangered Sumatran elephant is essential to reducing human-elephant conflict.